diff options
author | Ryan <ry@tinyclouds.org> | 2009-09-02 11:13:46 +0200 |
---|---|---|
committer | Ryan <ry@tinyclouds.org> | 2009-09-02 11:13:46 +0200 |
commit | 97ce138621b375f24db98280972a56e063be0b1d (patch) | |
tree | 3bc3aa651233955ade15b1f5a00678e042be1076 /deps/v8/src/globals.h | |
parent | 78bb53b009e04c94f142aa3241b06c640395b170 (diff) | |
download | node-97ce138621b375f24db98280972a56e063be0b1d.tar.gz |
Upgrade V8 to 1.3.9
Diffstat (limited to 'deps/v8/src/globals.h')
-rw-r--r-- | deps/v8/src/globals.h | 23 |
1 files changed, 8 insertions, 15 deletions
diff --git a/deps/v8/src/globals.h b/deps/v8/src/globals.h index 195a2e2fc..efe0127e0 100644 --- a/deps/v8/src/globals.h +++ b/deps/v8/src/globals.h @@ -47,7 +47,14 @@ namespace internal { #define V8_HOST_ARCH_ARM 1 #define V8_HOST_ARCH_32_BIT 1 #else -#error Your architecture was not detected as supported by v8 +#error Your host architecture was not detected as supported by v8 +#endif + +#if defined(V8_TARGET_ARCH_X64) || defined(V8_TARGET_ARCH_IA32) +#define V8_TARGET_CAN_READ_UNALIGNED 1 +#elif V8_TARGET_ARCH_ARM +#else +#error Your target architecture is not supported by v8 #endif // Support for alternative bool type. This is only enabled if the code is @@ -134,17 +141,6 @@ const intptr_t kObjectAlignmentMask = kObjectAlignment - 1; const intptr_t kPointerAlignment = (1 << kPointerSizeLog2); const intptr_t kPointerAlignmentMask = kPointerAlignment - 1; -// Tag information for HeapObject. -const int kHeapObjectTag = 1; -const int kHeapObjectTagSize = 2; -const intptr_t kHeapObjectTagMask = (1 << kHeapObjectTagSize) - 1; - - -// Tag information for Smi. -const int kSmiTag = 0; -const int kSmiTagSize = 1; -const intptr_t kSmiTagMask = (1 << kSmiTagSize) - 1; - // Tag information for Failure. const int kFailureTag = 3; @@ -429,9 +425,6 @@ enum StateTag { #define HAS_FAILURE_TAG(value) \ ((reinterpret_cast<intptr_t>(value) & kFailureTagMask) == kFailureTag) -#define HAS_HEAP_OBJECT_TAG(value) \ - ((reinterpret_cast<intptr_t>(value) & kHeapObjectTagMask) == kHeapObjectTag) - // OBJECT_SIZE_ALIGN returns the value aligned HeapObject size #define OBJECT_SIZE_ALIGN(value) \ (((value) + kObjectAlignmentMask) & ~kObjectAlignmentMask) |