v8  5.1.281(node6.17.1)
V8 is Google's open source JavaScript engine
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_INLINEReadField (const internal::Object *ptr, int offset)
 
template<typename T >
static V8_INLINEReadEmbedderData (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 = 5 * 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 = 5
 
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 = 4
 
static const int kNullValueRootIndex = 6
 
static const int kTrueValueRootIndex = 7
 
static const int kFalseValueRootIndex = 8
 
static const int kEmptyStringRootIndex = 9
 
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 kNodeIsActiveShift = 4
 
static const int kJSObjectType = 0xb8
 
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.

Definition at line 7308 of file v8.h.

Member Function Documentation

◆ CheckInitialized()

static V8_INLINE void CheckInitialized ( v8::Isolate isolate)
inlinestatic

Definition at line 7367 of file v8.h.

References Internals::CheckInitializedImpl().

◆ CheckInitializedImpl()

static V8_EXPORT void CheckInitializedImpl ( v8::Isolate isolate)
static

◆ GetEmbedderData()

static V8_INLINE void* GetEmbedderData ( const v8::Isolate isolate,
uint32_t  slot 
)
inlinestatic

Definition at line 7439 of file v8.h.

References v8::internal::kApiPointerSize, and Internals::kIsolateEmbedderDataOffset.

◆ GetInstanceType()

static V8_INLINE int GetInstanceType ( const internal::Object *  obj)
inlinestatic

◆ GetNodeFlag()

static V8_INLINE uint8_t GetNodeFlag ( internal::Object **  obj,
int  shift 
)
inlinestatic

Definition at line 7408 of file v8.h.

References Internals::kNodeFlagsOffset.

◆ GetNodeState()

static V8_INLINE uint8_t GetNodeState ( internal::Object **  obj)
inlinestatic

Definition at line 7420 of file v8.h.

References Internals::kNodeFlagsOffset, and Internals::kNodeStateMask.

◆ GetOddballKind()

static V8_INLINE int GetOddballKind ( const internal::Object *  obj)
inlinestatic

Definition at line 7398 of file v8.h.

References Internals::kOddballKindOffset, and Internals::SmiValue().

◆ GetRoot()

static V8_INLINE internal::Object** GetRoot ( v8::Isolate isolate,
int  index 
)
inlinestatic

Definition at line 7446 of file v8.h.

References v8::internal::kApiPointerSize, and Internals::kIsolateRootsOffset.

◆ HasHeapObjectTag()

static V8_INLINE bool HasHeapObjectTag ( const internal::Object *  value)
inlinestatic

Definition at line 7373 of file v8.h.

References v8::internal::kHeapObjectTag, and v8::internal::kHeapObjectTagMask.

◆ IntToSmi()

static V8_INLINE internal::Object* IntToSmi ( int  value)
inlinestatic

Definition at line 7382 of file v8.h.

References v8::internal::IntToSmi().

◆ IsExternalTwoByteString()

static V8_INLINE bool IsExternalTwoByteString ( int  instance_type)
inlinestatic

◆ IsValidSmi()

static V8_INLINE bool IsValidSmi ( intptr_t  value)
inlinestatic

Definition at line 7386 of file v8.h.

◆ ReadEmbedderData()

static V8_INLINE T ReadEmbedderData ( const v8::Context context,
int  index 
)
inlinestatic

Definition at line 7460 of file v8.h.

References v8::internal::kApiPointerSize.

◆ ReadField()

static V8_INLINE T ReadField ( const internal::Object *  ptr,
int  offset 
)
inlinestatic

Definition at line 7453 of file v8.h.

References v8::internal::kHeapObjectTag.

◆ SetEmbedderData()

static V8_INLINE void SetEmbedderData ( v8::Isolate isolate,
uint32_t  slot,
void *  data 
)
inlinestatic

Definition at line 7431 of file v8.h.

References v8::internal::kApiPointerSize, and Internals::kIsolateEmbedderDataOffset.

◆ SmiValue()

static V8_INLINE int SmiValue ( const internal::Object *  value)
inlinestatic

Definition at line 7378 of file v8.h.

Referenced by Internals::GetOddballKind().

◆ UpdateNodeFlag()

static V8_INLINE void UpdateNodeFlag ( internal::Object **  obj,
bool  value,
int  shift 
)
inlinestatic

Definition at line 7413 of file v8.h.

References Internals::kNodeFlagsOffset.

◆ UpdateNodeState()

static V8_INLINE void UpdateNodeState ( internal::Object **  obj,
uint8_t  value 
)
inlinestatic

Definition at line 7425 of file v8.h.

References Internals::kNodeFlagsOffset, and Internals::kNodeStateMask.

Field Documentation

◆ kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset

const int kAmountOfExternalAllocatedMemoryAtLastGlobalGCOffset
static
Initial value:

Definition at line 7331 of file v8.h.

◆ kAmountOfExternalAllocatedMemoryOffset

const int kAmountOfExternalAllocatedMemoryOffset
static
Initial value:

Definition at line 7329 of file v8.h.

◆ kContextEmbedderDataIndex

const int kContextEmbedderDataIndex = 5
static

Definition at line 7322 of file v8.h.

◆ kContextHeaderSize

const int kContextHeaderSize = 2 * kApiPointerSize
static

Definition at line 7321 of file v8.h.

◆ kEmptyStringRootIndex

const int kEmptyStringRootIndex = 9
static

Definition at line 7340 of file v8.h.

◆ kExternalAllocationLimit

const int kExternalAllocationLimit = 192 * 1024 * 1024
static

Definition at line 7344 of file v8.h.

◆ kExternalOneByteRepresentationTag

const int kExternalOneByteRepresentationTag = 0x06
static

Definition at line 7326 of file v8.h.

◆ kExternalTwoByteRepresentationTag

const int kExternalTwoByteRepresentationTag = 0x02
static

Definition at line 7325 of file v8.h.

Referenced by Internals::IsExternalTwoByteString().

◆ kFalseValueRootIndex

const int kFalseValueRootIndex = 8
static

Definition at line 7339 of file v8.h.

◆ kFirstNonstringType

const int kFirstNonstringType = 0x80
static

Definition at line 7357 of file v8.h.

◆ kFixedArrayHeaderSize

const int kFixedArrayHeaderSize = 2 * kApiPointerSize
static

Definition at line 7320 of file v8.h.

◆ kForeignAddressOffset

const int kForeignAddressOffset = kApiPointerSize
static

Definition at line 7318 of file v8.h.

◆ kForeignType

const int kForeignType = 0x87
static

Definition at line 7359 of file v8.h.

◆ kFullStringRepresentationMask

const int kFullStringRepresentationMask = 0x07
static

Definition at line 7323 of file v8.h.

Referenced by Internals::IsExternalTwoByteString().

◆ kHeapObjectMapOffset

const int kHeapObjectMapOffset = 0
static

Definition at line 7312 of file v8.h.

Referenced by Internals::GetInstanceType().

◆ kIsolateEmbedderDataOffset

const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize
static

Definition at line 7328 of file v8.h.

Referenced by Internals::GetEmbedderData(), and Internals::SetEmbedderData().

◆ kIsolateRootsOffset

const int kIsolateRootsOffset
static

◆ kJSObjectHeaderSize

const int kJSObjectHeaderSize = 3 * kApiPointerSize
static

Definition at line 7319 of file v8.h.

◆ kJSObjectType

const int kJSObjectType = 0xb8
static

Definition at line 7356 of file v8.h.

◆ kMapInstanceTypeAndBitFieldOffset

const int kMapInstanceTypeAndBitFieldOffset
static
Initial value:

Definition at line 7313 of file v8.h.

Referenced by Internals::GetInstanceType().

◆ kNodeClassIdOffset

const int kNodeClassIdOffset = 1 * kApiPointerSize
static

Definition at line 7346 of file v8.h.

◆ kNodeFlagsOffset

const int kNodeFlagsOffset = 1 * kApiPointerSize + 3
static

◆ kNodeIsActiveShift

const int kNodeIsActiveShift = 4
static

Definition at line 7354 of file v8.h.

◆ kNodeIsIndependentShift

const int kNodeIsIndependentShift = 3
static

Definition at line 7352 of file v8.h.

◆ kNodeIsPartiallyDependentShift

const int kNodeIsPartiallyDependentShift = 4
static

Definition at line 7353 of file v8.h.

◆ kNodeStateIsNearDeathValue

const int kNodeStateIsNearDeathValue = 4
static

Definition at line 7351 of file v8.h.

◆ kNodeStateIsPendingValue

const int kNodeStateIsPendingValue = 3
static

Definition at line 7350 of file v8.h.

◆ kNodeStateIsWeakValue

const int kNodeStateIsWeakValue = 2
static

Definition at line 7349 of file v8.h.

◆ kNodeStateMask

const int kNodeStateMask = 0x7
static

Definition at line 7348 of file v8.h.

Referenced by Internals::GetNodeState(), and Internals::UpdateNodeState().

◆ kNullOddballKind

const int kNullOddballKind = 3
static

Definition at line 7362 of file v8.h.

◆ kNullValueRootIndex

const int kNullValueRootIndex = 6
static

Definition at line 7337 of file v8.h.

◆ kNumIsolateDataSlots

const uint32_t kNumIsolateDataSlots = 4
static

Definition at line 7364 of file v8.h.

◆ kOddballKindOffset

const int kOddballKindOffset = 5 * kApiPointerSize
static

Definition at line 7317 of file v8.h.

Referenced by Internals::GetOddballKind().

◆ kOddballType

const int kOddballType = 0x83
static

Definition at line 7358 of file v8.h.

◆ kStringEncodingMask

const int kStringEncodingMask = 0x4
static

Definition at line 7324 of file v8.h.

◆ kStringResourceOffset

const int kStringResourceOffset = 3 * kApiPointerSize
static

Definition at line 7315 of file v8.h.

◆ kTrueValueRootIndex

const int kTrueValueRootIndex = 7
static

Definition at line 7338 of file v8.h.

◆ kUndefinedOddballKind

const int kUndefinedOddballKind = 5
static

Definition at line 7361 of file v8.h.

◆ kUndefinedValueRootIndex

const int kUndefinedValueRootIndex = 4
static

Definition at line 7336 of file v8.h.


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