Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
v8::internal::Internals Class Reference

#include <v8.h>

Static Public Member Functions

static void CheckInitializedImpl (v8::Isolate *isolate)
 
static void CheckInitialized (v8::Isolate *isolate)
 
static bool HasHeapObjectTag (const internal::Object *value)
 
static int SmiValue (const internal::Object *value)
 
static internal::Object * IntToSmi (int value)
 
static bool IsValidSmi (intptr_t value)
 
static int GetInstanceType (const internal::Object *obj)
 
static int GetOddballKind (const internal::Object *obj)
 
static bool IsExternalTwoByteString (int instance_type)
 
static uint8_t GetNodeFlag (internal::Object **obj, int shift)
 
static void UpdateNodeFlag (internal::Object **obj, bool value, int shift)
 
static uint8_t GetNodeState (internal::Object **obj)
 
static void UpdateNodeState (internal::Object **obj, uint8_t value)
 
static void SetEmbedderData (v8::Isolate *isolate, uint32_t slot, void *data)
 
static void * GetEmbedderData (const v8::Isolate *isolate, uint32_t slot)
 
static internal::Object ** GetRoot (v8::Isolate *isolate, int index)
 
template<typename T >
static T ReadField (const internal::Object *ptr, int offset)
 
template<typename T >
static 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 = 4 * kApiPointerSize + sizeof(double)
 
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 = 0x0f
 
static const int kStringEncodingMask = 0x8
 
static const int kExternalTwoByteRepresentationTag = 0x02
 
static const int kExternalOneByteRepresentationTag = 0x0a
 
static const int kIsolateEmbedderDataOffset = 0 * kApiPointerSize
 
static const int kExternalMemoryOffset = 4 * kApiPointerSize
 
static const int kExternalMemoryLimitOffset
 
static const int kExternalMemoryAtLastMarkCompactOffset
 
static const int kIsolateRootsOffset
 
static const int kUndefinedValueRootIndex = 4
 
static const int kTheHoleValueRootIndex = 5
 
static const int kNullValueRootIndex = 6
 
static const int kTrueValueRootIndex = 7
 
static const int kFalseValueRootIndex = 8
 
static const int kEmptyStringRootIndex = 9
 
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 kNodeIsActiveShift = 4
 
static const int kJSApiObjectType = 0xbd
 
static const int kJSObjectType = 0xbe
 
static const int kFirstNonstringType = 0x80
 
static const int kOddballType = 0x82
 
static const int kForeignType = 0x86
 
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

◆ CheckInitialized()

static void v8::internal::Internals::CheckInitialized ( v8::Isolate isolate)
inlinestatic

◆ CheckInitializedImpl()

static void v8::internal::Internals::CheckInitializedImpl ( v8::Isolate isolate)
static

◆ GetEmbedderData()

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

◆ GetInstanceType()

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

◆ GetNodeFlag()

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

◆ GetNodeState()

static uint8_t v8::internal::Internals::GetNodeState ( internal::Object **  obj)
inlinestatic

◆ GetOddballKind()

static int v8::internal::Internals::GetOddballKind ( const internal::Object *  obj)
inlinestatic
Here is the call graph for this function:

◆ GetRoot()

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

◆ HasHeapObjectTag()

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

◆ IntToSmi()

static internal::Object * v8::internal::Internals::IntToSmi ( int  value)
inlinestatic

◆ IsExternalTwoByteString()

static bool v8::internal::Internals::IsExternalTwoByteString ( int  instance_type)
inlinestatic

◆ IsValidSmi()

static bool v8::internal::Internals::IsValidSmi ( intptr_t  value)
inlinestatic

◆ ReadEmbedderData()

template<typename T >
static T v8::internal::Internals::ReadEmbedderData ( const v8::Context context,
int  index 
)
inlinestatic

◆ ReadField()

template<typename T >
static T v8::internal::Internals::ReadField ( const internal::Object *  ptr,
int  offset 
)
inlinestatic

◆ SetEmbedderData()

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

◆ SmiValue()

static int v8::internal::Internals::SmiValue ( const internal::Object *  value)
inlinestatic
Here is the caller graph for this function:

◆ UpdateNodeFlag()

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

◆ UpdateNodeState()

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

Member Data Documentation

◆ kContextEmbedderDataIndex

const int v8::internal::Internals::kContextEmbedderDataIndex = 5
static

◆ kContextHeaderSize

const int v8::internal::Internals::kContextHeaderSize = 2 * kApiPointerSize
static

◆ kEmptyStringRootIndex

const int v8::internal::Internals::kEmptyStringRootIndex = 9
static

◆ kExternalMemoryAtLastMarkCompactOffset

const int v8::internal::Internals::kExternalMemoryAtLastMarkCompactOffset
static
Initial value:
=
static const int kExternalMemoryLimitOffset
Definition: v8.h:8991
const int kApiInt64Size
Definition: v8.h:8888

◆ kExternalMemoryLimitOffset

const int v8::internal::Internals::kExternalMemoryLimitOffset
static
Initial value:
=
static const int kExternalMemoryOffset
Definition: v8.h:8990

◆ kExternalMemoryOffset

const int v8::internal::Internals::kExternalMemoryOffset = 4 * kApiPointerSize
static

◆ kExternalOneByteRepresentationTag

const int v8::internal::Internals::kExternalOneByteRepresentationTag = 0x0a
static

◆ kExternalTwoByteRepresentationTag

const int v8::internal::Internals::kExternalTwoByteRepresentationTag = 0x02
static

◆ kFalseValueRootIndex

const int v8::internal::Internals::kFalseValueRootIndex = 8
static

◆ kFirstNonstringType

const int v8::internal::Internals::kFirstNonstringType = 0x80
static

◆ kFixedArrayHeaderSize

const int v8::internal::Internals::kFixedArrayHeaderSize = 2 * kApiPointerSize
static

◆ kForeignAddressOffset

const int v8::internal::Internals::kForeignAddressOffset = kApiPointerSize
static

◆ kForeignType

const int v8::internal::Internals::kForeignType = 0x86
static

◆ kFullStringRepresentationMask

const int v8::internal::Internals::kFullStringRepresentationMask = 0x0f
static

◆ kHeapObjectMapOffset

const int v8::internal::Internals::kHeapObjectMapOffset = 0
static

◆ kIsolateEmbedderDataOffset

const int v8::internal::Internals::kIsolateEmbedderDataOffset = 0 * kApiPointerSize
static

◆ kIsolateRootsOffset

const int v8::internal::Internals::kIsolateRootsOffset
static
Initial value:

◆ kJSApiObjectType

const int v8::internal::Internals::kJSApiObjectType = 0xbd
static

◆ kJSObjectHeaderSize

const int v8::internal::Internals::kJSObjectHeaderSize = 3 * kApiPointerSize
static

◆ kJSObjectType

const int v8::internal::Internals::kJSObjectType = 0xbe
static

◆ kMapInstanceTypeAndBitFieldOffset

const int v8::internal::Internals::kMapInstanceTypeAndBitFieldOffset
static
Initial value:
=
const int kApiIntSize
Definition: v8.h:8887

◆ kNodeClassIdOffset

const int v8::internal::Internals::kNodeClassIdOffset = 1 * kApiPointerSize
static

◆ kNodeFlagsOffset

const int v8::internal::Internals::kNodeFlagsOffset = 1 * kApiPointerSize + 3
static

◆ kNodeIsActiveShift

const int v8::internal::Internals::kNodeIsActiveShift = 4
static

◆ kNodeIsIndependentShift

const int v8::internal::Internals::kNodeIsIndependentShift = 3
static

◆ kNodeStateIsNearDeathValue

const int v8::internal::Internals::kNodeStateIsNearDeathValue = 4
static

◆ kNodeStateIsPendingValue

const int v8::internal::Internals::kNodeStateIsPendingValue = 3
static

◆ kNodeStateIsWeakValue

const int v8::internal::Internals::kNodeStateIsWeakValue = 2
static

◆ kNodeStateMask

const int v8::internal::Internals::kNodeStateMask = 0x7
static

◆ kNullOddballKind

const int v8::internal::Internals::kNullOddballKind = 3
static

◆ kNullValueRootIndex

const int v8::internal::Internals::kNullValueRootIndex = 6
static

◆ kNumIsolateDataSlots

const uint32_t v8::internal::Internals::kNumIsolateDataSlots = 4
static

◆ kOddballKindOffset

const int v8::internal::Internals::kOddballKindOffset = 4 * kApiPointerSize + sizeof(double)
static

◆ kOddballType

const int v8::internal::Internals::kOddballType = 0x82
static

◆ kStringEncodingMask

const int v8::internal::Internals::kStringEncodingMask = 0x8
static

◆ kStringResourceOffset

const int v8::internal::Internals::kStringResourceOffset = 3 * kApiPointerSize
static

◆ kTheHoleValueRootIndex

const int v8::internal::Internals::kTheHoleValueRootIndex = 5
static

◆ kTrueValueRootIndex

const int v8::internal::Internals::kTrueValueRootIndex = 7
static

◆ kUndefinedOddballKind

const int v8::internal::Internals::kUndefinedOddballKind = 5
static

◆ kUndefinedValueRootIndex

const int v8::internal::Internals::kUndefinedValueRootIndex = 4
static

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