v8
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Static Public Attributes | List of all members
v8::internal::Internals Class Reference

#include <v8.h>

Static Public Member Functions

static V8_EXPORT void CheckInitializedImpl (v8::Isolate *isolate)
 
static V8_INLINE void CheckInitialized (v8::Isolate *isolate)
 
static V8_INLINE bool HasHeapObjectTag (const internal::Object *value)
 
static V8_INLINE int SmiValue (const internal::Object *value)
 
static V8_INLINE internal::Object * IntToSmi (int value)
 
static V8_INLINE bool IsValidSmi (intptr_t value)
 
static V8_INLINE int GetInstanceType (const internal::Object *obj)
 
static V8_INLINE int GetOddballKind (const internal::Object *obj)
 
static V8_INLINE bool IsExternalTwoByteString (int instance_type)
 
static V8_INLINE uint8_t GetNodeFlag (internal::Object **obj, int shift)
 
static V8_INLINE void UpdateNodeFlag (internal::Object **obj, bool value, int shift)
 
static V8_INLINE uint8_t GetNodeState (internal::Object **obj)
 
static V8_INLINE void UpdateNodeState (internal::Object **obj, uint8_t value)
 
static V8_INLINE void SetEmbedderData (v8::Isolate *isolate, uint32_t slot, void *data)
 
static V8_INLINE void * GetEmbedderData (const v8::Isolate *isolate, uint32_t slot)
 
static V8_INLINE
internal::Object ** 
GetRoot (v8::Isolate *isolate, int index)
 
template<typename T >
static V8_INLINE T ReadField (const internal::Object *ptr, int offset)
 
template<typename T >
static V8_INLINE T ReadEmbedderData (const v8::Context *context, int index)
 

Static Public Attributes

static const int kHeapObjectMapOffset = 0
 
static const int kMapInstanceTypeAndBitFieldOffset
 
static const int kStringResourceOffset = 3 * kApiPointerSize
 
static const int kOddballKindOffset = 3 * kApiPointerSize
 
static const int kForeignAddressOffset = kApiPointerSize
 
static const int kJSObjectHeaderSize = 3 * kApiPointerSize
 
static const int kFixedArrayHeaderSize = 2 * kApiPointerSize
 
static const int kContextHeaderSize = 2 * kApiPointerSize
 
static const int kContextEmbedderDataIndex = 80
 
static const int kFullStringRepresentationMask = 0x07
 
static const int kStringEncodingMask = 0x4
 
static const int kExternalTwoByteRepresentationTag = 0x02
 
static const int kExternalOneByteRepresentationTag = 0x06
 
static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize
 
static const int kAmountOfExternalAllocatedMemoryOffset
 
static const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset
 
static const int kIsolateRootsOffset
 
static const int kUndefinedValueRootIndex = 5
 
static const int kNullValueRootIndex = 7
 
static const int kTrueValueRootIndex = 8
 
static const int kFalseValueRootIndex = 9
 
static const int kEmptyStringRootIndex = 10
 
static const int kExternalAllocationLimit = 192 * 1024 * 1024
 
static const int kNodeClassIdOffset = 1 * kApiPointerSize
 
static const int kNodeFlagsOffset = 1 * kApiPointerSize + 3
 
static const int kNodeStateMask = 0x7
 
static const int kNodeStateIsWeakValue = 2
 
static const int kNodeStateIsPendingValue = 3
 
static const int kNodeStateIsNearDeathValue = 4
 
static const int kNodeIsIndependentShift = 3
 
static const int kNodeIsPartiallyDependentShift = 4
 
static const int kJSObjectType = 0xbe
 
static const int kFirstNonstringType = 0x80
 
static const int kOddballType = 0x83
 
static const int kForeignType = 0x87
 
static const int kUndefinedOddballKind = 5
 
static const int kNullOddballKind = 3
 
static const uint32_t kNumIsolateDataSlots = 4
 

Detailed Description

This class exports constants and functionality from within v8 that is necessary to implement inline functions in the v8 api. Don't depend on functions and constants defined here.

Member Function Documentation

static V8_INLINE void v8::internal::Internals::CheckInitialized ( v8::Isolate isolate)
inlinestatic
static V8_EXPORT void v8::internal::Internals::CheckInitializedImpl ( v8::Isolate isolate)
static
static V8_INLINE void* v8::internal::Internals::GetEmbedderData ( const v8::Isolate isolate,
uint32_t  slot 
)
inlinestatic
static V8_INLINE int v8::internal::Internals::GetInstanceType ( const internal::Object *  obj)
inlinestatic
static V8_INLINE uint8_t v8::internal::Internals::GetNodeFlag ( internal::Object **  obj,
int  shift 
)
inlinestatic
static V8_INLINE uint8_t v8::internal::Internals::GetNodeState ( internal::Object **  obj)
inlinestatic
static V8_INLINE int v8::internal::Internals::GetOddballKind ( const internal::Object *  obj)
inlinestatic
static V8_INLINE internal::Object** v8::internal::Internals::GetRoot ( v8::Isolate isolate,
int  index 
)
inlinestatic
static V8_INLINE bool v8::internal::Internals::HasHeapObjectTag ( const internal::Object *  value)
inlinestatic
static V8_INLINE internal::Object* v8::internal::Internals::IntToSmi ( int  value)
inlinestatic
static V8_INLINE bool v8::internal::Internals::IsExternalTwoByteString ( int  instance_type)
inlinestatic
static V8_INLINE bool v8::internal::Internals::IsValidSmi ( intptr_t  value)
inlinestatic
template<typename T >
static V8_INLINE T v8::internal::Internals::ReadEmbedderData ( const v8::Context context,
int  index 
)
inlinestatic
template<typename T >
static V8_INLINE T v8::internal::Internals::ReadField ( const internal::Object *  ptr,
int  offset 
)
inlinestatic
static V8_INLINE void v8::internal::Internals::SetEmbedderData ( v8::Isolate isolate,
uint32_t  slot,
void *  data 
)
inlinestatic
static V8_INLINE int v8::internal::Internals::SmiValue ( const internal::Object *  value)
inlinestatic
static V8_INLINE void v8::internal::Internals::UpdateNodeFlag ( internal::Object **  obj,
bool  value,
int  shift 
)
inlinestatic
static V8_INLINE void v8::internal::Internals::UpdateNodeState ( internal::Object **  obj,
uint8_t  value 
)
inlinestatic

Member Data Documentation

const int v8::internal::Internals::kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset
static
const int v8::internal::Internals::kAmountOfExternalAllocatedMemoryOffset
static
Initial value:
const int v8::internal::Internals::kContextEmbedderDataIndex = 80
static
const int v8::internal::Internals::kContextHeaderSize = 2 * kApiPointerSize
static
const int v8::internal::Internals::kEmptyStringRootIndex = 10
static
const int v8::internal::Internals::kExternalAllocationLimit = 192 * 1024 * 1024
static
const int v8::internal::Internals::kExternalOneByteRepresentationTag = 0x06
static
const int v8::internal::Internals::kExternalTwoByteRepresentationTag = 0x02
static
const int v8::internal::Internals::kFalseValueRootIndex = 9
static
const int v8::internal::Internals::kFirstNonstringType = 0x80
static
const int v8::internal::Internals::kFixedArrayHeaderSize = 2 * kApiPointerSize
static
const int v8::internal::Internals::kForeignAddressOffset = kApiPointerSize
static
const int v8::internal::Internals::kForeignType = 0x87
static
const int v8::internal::Internals::kFullStringRepresentationMask = 0x07
static
const int v8::internal::Internals::kHeapObjectMapOffset = 0
static
const int v8::internal::Internals::kIsolateEmbedderDataOffset = 0 * kApiPointerSize
static
const int v8::internal::Internals::kIsolateRootsOffset
static
const int v8::internal::Internals::kJSObjectHeaderSize = 3 * kApiPointerSize
static
const int v8::internal::Internals::kJSObjectType = 0xbe
static
const int v8::internal::Internals::kMapInstanceTypeAndBitFieldOffset
static
Initial value:
const int v8::internal::Internals::kNodeClassIdOffset = 1 * kApiPointerSize
static
const int v8::internal::Internals::kNodeFlagsOffset = 1 * kApiPointerSize + 3
static
const int v8::internal::Internals::kNodeIsIndependentShift = 3
static
const int v8::internal::Internals::kNodeIsPartiallyDependentShift = 4
static
const int v8::internal::Internals::kNodeStateIsNearDeathValue = 4
static
const int v8::internal::Internals::kNodeStateIsPendingValue = 3
static
const int v8::internal::Internals::kNodeStateIsWeakValue = 2
static
const int v8::internal::Internals::kNodeStateMask = 0x7
static
const int v8::internal::Internals::kNullOddballKind = 3
static
const int v8::internal::Internals::kNullValueRootIndex = 7
static
const uint32_t v8::internal::Internals::kNumIsolateDataSlots = 4
static
const int v8::internal::Internals::kOddballKindOffset = 3 * kApiPointerSize
static
const int v8::internal::Internals::kOddballType = 0x83
static
const int v8::internal::Internals::kStringEncodingMask = 0x4
static
const int v8::internal::Internals::kStringResourceOffset = 3 * kApiPointerSize
static
const int v8::internal::Internals::kTrueValueRootIndex = 8
static
const int v8::internal::Internals::kUndefinedOddballKind = 5
static
const int v8::internal::Internals::kUndefinedValueRootIndex = 5
static

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