28 #ifndef V8_V8GLOBALS_H_
29 #define V8_V8GLOBALS_H_
56 #if V8_HOST_ARCH_64_BIT
78 #ifdef V8_HOST_ARCH_64_BIT
80 reinterpret_cast<Address>(V8_UINT64_C(0xdeadbeedbeadbeef));
82 reinterpret_cast<Address>(V8_UINT64_C(0x1baddead0baddeaf));
84 reinterpret_cast<Address>(V8_UINT64_C(0x1beefdad0beefdaf));
129 class ExternalReference;
136 template <
typename T>
class Handle;
159 template <
typename Config,
class Allocator = FreeStoreAllocationPolicy>
369 #define STATE_TAG_LIST(V) \
377 #define DEF_STATE_TAG(name) name,
390 #define HAS_SMI_TAG(value) \
391 ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag)
393 #define HAS_FAILURE_TAG(value) \
394 ((reinterpret_cast<intptr_t>(value) & kFailureTagMask) == kFailureTag)
397 #define OBJECT_POINTER_ALIGN(value) \
398 (((value) + kObjectAlignmentMask) & ~kObjectAlignmentMask)
401 #define POINTER_SIZE_ALIGN(value) \
402 (((value) + kPointerAlignmentMask) & ~kPointerAlignmentMask)
405 #define MAP_POINTER_ALIGN(value) \
406 (((value) + kMapAlignmentMask) & ~kMapAlignmentMask)
409 #define CODE_POINTER_ALIGN(value) \
410 (((value) + kCodeAlignmentMask) & ~kCodeAlignmentMask)
418 #define TRACK_MEMORY(name) \
419 void* operator new(size_t size) { \
420 void* result = ::operator new(size); \
421 Logger::NewEventStatic(name, result, size); \
424 void operator delete(void* object) { \
425 Logger::DeleteEventStatic(name, object); \
426 ::operator delete(object); \
429 #define TRACK_MEMORY(name)
562 #endif // V8_V8GLOBALS_H_
bool(* WeakSlotCallbackWithHeap)(Heap *heap, Object **pointer)
const intptr_t kMapAlignmentMask
const intptr_t kSmiSignMask
const intptr_t kDoubleAlignmentMask
const uint32_t kNaNOrInfinityLowerBoundUpper32
DoubleRepresentation(double x)
const intptr_t kCodeAlignmentMask
const intptr_t kIntptrSignBit
const int kProcessorCacheLineSize
struct v8::internal::IeeeDoubleBigEndianArchType::@29 bits
const int kPointerSizeLog2
const intptr_t kCodeAlignment
const intptr_t kObjectAlignmentMask
void(* StoreBufferCallback)(Heap *heap, MemoryChunk *page, StoreBufferEvent event)
const uint32_t kSlotsZapValue
const uint64_t kHoleNanInt64
const intptr_t kMapAlignment
const intptr_t kMapAlignmentBits
int(* HeapObjectCallback)(HeapObject *obj)
const intptr_t kFailureTagMask
const int kFailureTagSize
const uint32_t kHoleNanUpper32
const uint32_t kHoleNanLower32
#define DEF_STATE_TAG(name)
const uint32_t kQuietNaNHighBitsMask
const Address kFromSpaceZapValue
struct v8::internal::IeeeDoubleLittleEndianArchType::@28 bits
const intptr_t kPointerAlignmentMask
const uint32_t kFreeListZapValue
void(* InlineCacheCallback)(Code *code, Address ic)
const intptr_t kObjectAlignment
const uint64_t kLastNonNaNInt64
const intptr_t kPointerAlignment
const int kObjectAlignmentBits
const int kCodeAlignmentBits
bool(* ConstraintCallback)(Address new_addr, Address old_addr)
const uint32_t kDebugZapValue
const intptr_t kDoubleAlignment
#define STATE_TAG_LIST(V)
bool(* WeakSlotCallback)(Object **pointer)
const Address kHandleZapValue