v8  3.14.5(node0.10.28)
V8 is Google's open source JavaScript engine
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
globals.h File Reference
Include dependency graph for globals.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  List< T, P >
 

Namespaces

 v8
 
 v8::internal
 

Macros

#define V8_INFINITY   INFINITY
 
#define V8_INTPTR_C(x)   (x)
 
#define V8_PTR_PREFIX   ""
 
#define V8_2PART_UINT64_C(a, b)   (((static_cast<uint64_t>(a) << 32) + 0x##b##u))
 
#define V8PRIxPTR   V8_PTR_PREFIX "x"
 
#define V8PRIdPTR   V8_PTR_PREFIX "d"
 
#define V8PRIuPTR   V8_PTR_PREFIX "u"
 
#define OFFSET_OF(type, field)   (reinterpret_cast<intptr_t>(&(reinterpret_cast<type*>(4)->field)) - 4)
 
#define ARRAY_SIZE(a)
 
#define FUNCTION_ADDR(f)   (reinterpret_cast<v8::internal::Address>(reinterpret_cast<intptr_t>(f)))
 
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
 
#define DISALLOW_IMPLICIT_CONSTRUCTORS(TypeName)
 
#define INLINE(header)   inline header
 
#define NO_INLINE(header)   header
 
#define MUST_USE_RESULT
 
#define DISABLE_ASAN
 

Typedefs

typedef uint8_t byte
 
typedef byte * Address
 
typedef uint16_t uc16
 
typedef int32_t uc32
 

Enumerations

enum  LanguageMode { CLASSIC_MODE, STRICT_MODE, EXTENDED_MODE }
 
enum  StrictModeFlag { kNonStrictMode, kStrictMode }
 

Functions

template<typename T >
void USE (T)
 
template<typename F >
F FUNCTION_CAST (Address addr)
 

Variables

const int KB = 1024
 
const int MB = KB * KB
 
const int GB = KB * KB * KB
 
const int kMaxInt = 0x7FFFFFFF
 
const int kMinInt = -kMaxInt - 1
 
const uint32_t kMaxUInt32 = 0xFFFFFFFFu
 
const int kCharSize = sizeof(char)
 
const int kShortSize = sizeof(short)
 
const int kIntSize = sizeof(int)
 
const int kDoubleSize = sizeof(double)
 
const int kIntptrSize = sizeof(intptr_t)
 
const int kPointerSize = sizeof(void*)
 
const int kDoubleSizeLog2 = 3
 
const int kRandomStateSize = 2 * kIntSize
 
const int kPointerSizeLog2 = 2
 
const intptr_t kIntptrSignBit = 0x80000000
 
const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu
 
const int kBitsPerByte = 8
 
const int kBitsPerByteLog2 = 3
 
const int kBitsPerPointer = kPointerSize * kBitsPerByte
 
const int kBitsPerInt = kIntSize * kBitsPerByte
 
const uint32_t kBinary32SignMask = 0x80000000u
 
const uint32_t kBinary32ExponentMask = 0x7f800000u
 
const uint32_t kBinary32MantissaMask = 0x007fffffu
 
const int kBinary32ExponentBias = 127
 
const int kBinary32MaxExponent = 0xFE
 
const int kBinary32MinExponent = 0x01
 
const int kBinary32MantissaBits = 23
 
const int kBinary32ExponentShift = 23
 
const uint64_t kQuietNaNMask = static_cast<uint64_t>(0xfff) << 51
 
const int kASCIISize = kCharSize
 
const int kUC16Size = sizeof(uc16)
 
const uc32 kMaxAsciiCharCode = 0x7f
 
const uint32_t kMaxAsciiCharCodeU = 0x7fu
 

Macro Definition Documentation

#define DISABLE_ASAN

Definition at line 359 of file globals.h.

#define DISALLOW_COPY_AND_ASSIGN (   TypeName)
Value:
TypeName(const TypeName&); \
void operator=(const TypeName&)

Definition at line 307 of file globals.h.

#define DISALLOW_IMPLICIT_CONSTRUCTORS (   TypeName)
Value:
TypeName(); \
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition: globals.h:307

Definition at line 318 of file globals.h.

#define FUNCTION_ADDR (   f)    (reinterpret_cast<v8::internal::Address>(reinterpret_cast<intptr_t>(f)))

Definition at line 293 of file globals.h.

Referenced by V8::AddMessageListener(), V8::RemoveMessageListeners(), and TEST().

#define INLINE (   header )    inline header

Definition at line 338 of file globals.h.

#define MUST_USE_RESULT

Definition at line 346 of file globals.h.

#define NO_INLINE (   header)    header

Definition at line 339 of file globals.h.

#define V8_2PART_UINT64_C (   a,
 
)    (((static_cast<uint64_t>(a) << 32) + 0x##b##u))

Definition at line 187 of file globals.h.

Referenced by v8::internal::FastFixedDtoa(), Bignum::MultiplyByPowerOfTen(), and TEST().

#define V8_INTPTR_C (   x)    (x)

Definition at line 180 of file globals.h.

#define V8PRIdPTR   V8_PTR_PREFIX "d"

Definition at line 190 of file globals.h.

#define V8PRIuPTR   V8_PTR_PREFIX "u"

Definition at line 191 of file globals.h.