v8  3.11.10(node0.8.26)
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 2523 of file heap.h.

Member Enumeration Documentation

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

Definition at line 2525 of file heap.h.

Member Function Documentation

void Clear ( )

Definition at line 7049 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 652 of file heap-inl.h.

References v8::internal::NULL, and v8::internal::type().

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

Friends And Related Function Documentation

friend class ExternalReference
friend

Definition at line 2590 of file heap.h.

friend class Isolate
friend

Definition at line 2586 of file heap.h.

friend class TranscendentalCacheStub
friend

Definition at line 2588 of file heap.h.

Field Documentation

const int kTranscendentalTypeBits = 3
static

Definition at line 2526 of file heap.h.


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