v8  6.8.275(node10.15.3)
V8 is Google's open source JavaScript engine
v8::internal Namespace Reference

Namespaces

 wasm
 

Data Structures

struct  CastCheck
 
class  CustomArguments
 
class  Internals
 
struct  SmiTagging
 
struct  SmiTagging< 4 >
 
struct  SmiTagging< 8 >
 

Typedefs

typedef SmiTagging< kApiPointerSizePlatformSmiTagging
 

Functions

template<int kSmiShiftSize>
V8_INLINE internal::Object * IntToSmi (int value)
 
constexpr bool SmiValuesAre31Bits ()
 
constexpr bool SmiValuesAre32Bits ()
 
template<class T >
V8_INLINE void PerformCastCheck (T *data)
 

Variables

const int kApiPointerSize = sizeof(void*)
 
const int kApiDoubleSize = sizeof(double)
 
const int kApiIntSize = sizeof(int)
 
const int kApiInt64Size = sizeof(int64_t)
 
const int kHeapObjectTag = 1
 
const int kWeakHeapObjectTag = 3
 
const int kHeapObjectTagSize = 2
 
const intptr_t kHeapObjectTagMask = (1 << kHeapObjectTagSize) - 1
 
const int kSmiTag = 0
 
const int kSmiTagSize = 1
 
const intptr_t kSmiTagMask = (1 << kSmiTagSize) - 1
 
const int kSmiShiftSize = PlatformSmiTagging::kSmiShiftSize
 
const int kSmiValueSize = PlatformSmiTagging::kSmiValueSize
 
const int kSmiMinValue = (static_cast<unsigned int>(-1)) << (kSmiValueSize - 1)
 
const int kSmiMaxValue = -(kSmiMinValue + 1)
 

Typedef Documentation

◆ PlatformSmiTagging

Definition at line 240 of file v8.h.

Function Documentation

◆ IntToSmi()

V8_INLINE internal::Object* v8::internal::IntToSmi ( int  value)

◆ PerformCastCheck()

V8_INLINE void v8::internal::PerformCastCheck ( T *  data)

Definition at line 9321 of file v8.h.

Referenced by Isolate::GetDataFromSnapshotOnce(), and Context::GetDataFromSnapshotOnce().

◆ SmiValuesAre31Bits()

constexpr bool v8::internal::SmiValuesAre31Bits ( )

Definition at line 245 of file v8.h.

References kSmiValueSize.

◆ SmiValuesAre32Bits()

constexpr bool v8::internal::SmiValuesAre32Bits ( )

Definition at line 246 of file v8.h.

References kSmiValueSize.

Variable Documentation

◆ kApiDoubleSize

const int kApiDoubleSize = sizeof(double)

Definition at line 164 of file v8.h.

◆ kApiInt64Size

const int kApiInt64Size = sizeof(int64_t)

Definition at line 166 of file v8.h.

◆ kApiIntSize

const int kApiIntSize = sizeof(int)

Definition at line 165 of file v8.h.

◆ kApiPointerSize

const int kApiPointerSize = sizeof(void*)

◆ kHeapObjectTag

const int kHeapObjectTag = 1

Definition at line 169 of file v8.h.

Referenced by Internals::HasHeapObjectTag(), and Internals::ReadField().

◆ kHeapObjectTagMask

const intptr_t kHeapObjectTagMask = (1 << kHeapObjectTagSize) - 1

Definition at line 172 of file v8.h.

Referenced by Internals::HasHeapObjectTag().

◆ kHeapObjectTagSize

const int kHeapObjectTagSize = 2

Definition at line 171 of file v8.h.

◆ kSmiMaxValue

const int kSmiMaxValue = -(kSmiMinValue + 1)

Definition at line 244 of file v8.h.

◆ kSmiMinValue

const int kSmiMinValue = (static_cast<unsigned int>(-1)) << (kSmiValueSize - 1)

Definition at line 243 of file v8.h.

◆ kSmiShiftSize

const int kSmiShiftSize = PlatformSmiTagging::kSmiShiftSize

◆ kSmiTag

const int kSmiTag = 0

Definition at line 175 of file v8.h.

Referenced by IntToSmi().

◆ kSmiTagMask

const intptr_t kSmiTagMask = (1 << kSmiTagSize) - 1

Definition at line 177 of file v8.h.

◆ kSmiTagSize

const int kSmiTagSize = 1

Definition at line 176 of file v8.h.

Referenced by IntToSmi(), SmiTagging< 4 >::SmiToInt(), and SmiTagging< 8 >::SmiToInt().

◆ kSmiValueSize

const int kSmiValueSize = PlatformSmiTagging::kSmiValueSize

◆ kWeakHeapObjectTag

const int kWeakHeapObjectTag = 3

Definition at line 170 of file v8.h.