v8  3.25.30(node0.11.13)
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_OOL_CONSTANT_POOL   0
 
#define V8_UINT64_C(x)   (x ## ULL)
 
#define V8_INT64_C(x)   (x ## LL)
 
#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 ROUND_UP(n, sz)   (((n) + ((sz) - 1)) & ~((sz) - 1))
 
#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(declarator)   V8_INLINE declarator
 
#define NO_INLINE(declarator)   V8_NOINLINE declarator
 
#define MUST_USE_RESULT   V8_WARN_UNUSED_RESULT
 
#define DISABLE_ASAN
 
#define V8_IMMEDIATE_CRASH()   ((void(*)())0)()
 

Typedefs

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

Enumerations

enum  StrictMode { SLOPPY, STRICT }
 

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 int kMaxInt8 = (1 << 7) - 1
 
const int kMinInt8 = -(1 << 7)
 
const int kMaxUInt8 = (1 << 8) - 1
 
const int kMinUInt8 = 0
 
const int kMaxInt16 = (1 << 15) - 1
 
const int kMinInt16 = -(1 << 15)
 
const int kMaxUInt16 = (1 << 16) - 1
 
const int kMinUInt16 = 0
 
const uint32_t kMaxUInt32 = 0xFFFFFFFFu
 
const int kCharSize = sizeof(char)
 
const int kShortSize = sizeof(short)
 
const int kIntSize = sizeof(int)
 
const int kInt32Size = sizeof(int32_t)
 
const int kInt64Size = sizeof(int64_t)
 
const int kDoubleSize = sizeof(double)
 
const int kIntptrSize = sizeof(intptr_t)
 
const int kPointerSize = sizeof(void*)
 
const int kRegisterSize = kPointerSize
 
const int kPCOnStackSize = kRegisterSize
 
const int kFPOnStackSize = kRegisterSize
 
const int kDoubleSizeLog2 = 3
 
const int kPointerSizeLog2 = 2
 
const intptr_t kIntptrSignBit = 0x80000000
 
const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu
 
const bool kIs64BitArch = false
 
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 kOneByteSize = kCharSize
 
const int kUC16Size = sizeof(uc16)
 

Macro Definition Documentation

#define DISABLE_ASAN

Definition at line 393 of file globals.h.

#define DISALLOW_COPY_AND_ASSIGN (   TypeName)
Value:
TypeName(const TypeName&) V8_DELETE; \
void operator=(const TypeName&) V8_DELETE
#define V8_DELETE
Definition: v8config.h:391

Definition at line 359 of file globals.h.

#define DISALLOW_IMPLICIT_CONSTRUCTORS (   TypeName)
Value:
TypeName() V8_DELETE; \
#define DISALLOW_COPY_AND_ASSIGN(TypeName)
Definition: globals.h:359
#define V8_DELETE
Definition: v8config.h:391

Definition at line 370 of file globals.h.

#define INLINE (   declarator )    V8_INLINE declarator

Definition at line 376 of file globals.h.

#define MUST_USE_RESULT   V8_WARN_UNUSED_RESULT

Definition at line 381 of file globals.h.

#define NO_INLINE (   declarator)    V8_NOINLINE declarator

Definition at line 377 of file globals.h.

#define ROUND_UP (   n,
  sz 
)    (((n) + ((sz) - 1)) & ~((sz) - 1))

Definition at line 316 of file globals.h.

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

Definition at line 226 of file globals.h.

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

#define V8_IMMEDIATE_CRASH ( )    ((void(*)())0)()

Definition at line 399 of file globals.h.

Referenced by OS::Abort().

#define V8_INT64_C (   x)    (x ## LL)

Definition at line 218 of file globals.h.

#define V8_INTPTR_C (   x)    (x)

Definition at line 219 of file globals.h.

#define V8_OOL_CONSTANT_POOL   0

Definition at line 166 of file globals.h.

#define V8_UINT64_C (   x)    (x ## ULL)

Definition at line 217 of file globals.h.

Referenced by OS::GetRandomMmapAddr().

#define V8PRIdPTR   V8_PTR_PREFIX "d"

Definition at line 229 of file globals.h.

#define V8PRIuPTR   V8_PTR_PREFIX "u"

Definition at line 230 of file globals.h.

Referenced by AddressToTraceMap::Print().