v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
TranscendentalCache Class Reference

#include <heap.h>

Public Types

enum  Type {
  ACOS, ASIN, ATAN, COS,
  EXP, LOG, SIN, TAN,
  kNumberOfCaches
}
 

Public Member Functions

 STATIC_ASSERT ((1<< kTranscendentalTypeBits) >=kNumberOfCaches)
 
MUST_USE_RESULT MaybeObject * Get (Type type, double input)
 
void Clear ()
 

Static Public Attributes

static const int kTranscendentalTypeBits = 3
 

Friends

class Isolate
 
class TranscendentalCacheStub
 
class ExternalReference
 

Detailed Description

Definition at line 2637 of file heap.h.

Member Enumeration Documentation

enum Type
Enumerator
ACOS 
ASIN 
ATAN 
COS 
EXP 
LOG 
SIN 
TAN 
kNumberOfCaches 

Definition at line 2639 of file heap.h.

Member Function Documentation

void Clear ( )

Definition at line 7174 of file heap.cc.

References TranscendentalCache::kNumberOfCaches, and v8::internal::NULL.

Referenced by Heap::GarbageCollectionPrologue().

MaybeObject * Get ( Type  type,
double  input 
)
inline

Definition at line 663 of file heap-inl.h.

References v8::internal::NULL.

STATIC_ASSERT ( (1<< kTranscendentalTypeBits) >=  kNumberOfCaches)

Friends And Related Function Documentation

friend class ExternalReference
friend

Definition at line 2704 of file heap.h.

friend class Isolate
friend

Definition at line 2700 of file heap.h.

friend class TranscendentalCacheStub
friend

Definition at line 2702 of file heap.h.

Field Documentation

const int kTranscendentalTypeBits = 3
static

Definition at line 2640 of file heap.h.


The documentation for this class was generated from the following files: