diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-11-14 00:52:27 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-11-14 16:34:58 +0100 |
commit | 5d1b6d3e0fa4b97a490ef964be48aed9872e3ec1 (patch) | |
tree | ab5f510c4d83b175681de629395525bf7ec7cedb /deps/v8/src/globals.h | |
parent | 3b3d89bad26f5dfebe73fef6ae284ee78acbd5c9 (diff) | |
download | android-node-v8-5d1b6d3e0fa4b97a490ef964be48aed9872e3ec1.tar.gz android-node-v8-5d1b6d3e0fa4b97a490ef964be48aed9872e3ec1.tar.bz2 android-node-v8-5d1b6d3e0fa4b97a490ef964be48aed9872e3ec1.zip |
deps: upgrade v8 to 3.30.37
Diffstat (limited to 'deps/v8/src/globals.h')
-rw-r--r-- | deps/v8/src/globals.h | 85 |
1 files changed, 42 insertions, 43 deletions
diff --git a/deps/v8/src/globals.h b/deps/v8/src/globals.h index 609ab8871f..c6ba010fc5 100644 --- a/deps/v8/src/globals.h +++ b/deps/v8/src/globals.h @@ -5,7 +5,8 @@ #ifndef V8_GLOBALS_H_ #define V8_GLOBALS_H_ -#include "include/v8stdint.h" +#include <stddef.h> +#include <stdint.h> #include "src/base/build_config.h" #include "src/base/logging.h" @@ -25,8 +26,8 @@ # define V8_INFINITY INFINITY #endif -#if V8_TARGET_ARCH_IA32 || V8_TARGET_ARCH_X64 || V8_TARGET_ARCH_ARM || \ - V8_TARGET_ARCH_ARM64 +#if V8_TARGET_ARCH_IA32 || (V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_32_BIT) || \ + V8_TARGET_ARCH_ARM || V8_TARGET_ARCH_ARM64 || V8_TARGET_ARCH_MIPS #define V8_TURBOFAN_BACKEND 1 #else #define V8_TURBOFAN_BACKEND 0 @@ -143,6 +144,13 @@ const intptr_t kIntptrSignBit = V8_INT64_C(0x8000000000000000); const uintptr_t kUintptrAllBitsSet = V8_UINT64_C(0xFFFFFFFFFFFFFFFF); const bool kRequiresCodeRange = true; const size_t kMaximalCodeRangeSize = 512 * MB; +#if V8_OS_WIN +const size_t kMinimumCodeRangeSize = 4 * MB; +const size_t kReservedCodeRangePages = 1; +#else +const size_t kMinimumCodeRangeSize = 3 * MB; +const size_t kReservedCodeRangePages = 0; +#endif #else const int kPointerSizeLog2 = 2; const intptr_t kIntptrSignBit = 0x80000000; @@ -151,9 +159,13 @@ const uintptr_t kUintptrAllBitsSet = 0xFFFFFFFFu; // x32 port also requires code range. const bool kRequiresCodeRange = true; const size_t kMaximalCodeRangeSize = 256 * MB; +const size_t kMinimumCodeRangeSize = 3 * MB; +const size_t kReservedCodeRangePages = 0; #else const bool kRequiresCodeRange = false; const size_t kMaximalCodeRangeSize = 0 * MB; +const size_t kMinimumCodeRangeSize = 0 * MB; +const size_t kReservedCodeRangePages = 0; #endif #endif @@ -276,6 +288,7 @@ const uint32_t kFreeListZapValue = 0xfeed1eaf; #endif const int kCodeZapValue = 0xbadc0de; +const uint32_t kPhantomReferenceZap = 0xca11bac; // On Intel architecture, cache line size is 64 bytes. // On ARM it may be less (32 bytes), but as far this constant is @@ -341,6 +354,7 @@ template <typename Config, class Allocator = FreeStoreAllocationPolicy> class String; class Name; class Struct; +class Symbol; class Variable; class RelocInfo; class Deserializer; @@ -364,7 +378,6 @@ enum AllocationSpace { CELL_SPACE, // Only and all cell objects. PROPERTY_CELL_SPACE, // Only and all global property cell objects. LO_SPACE, // Promoted large objects. - INVALID_SPACE, // Only used in AllocationResult to signal success. FIRST_SPACE = NEW_SPACE, LAST_SPACE = LO_SPACE, @@ -547,22 +560,6 @@ struct AccessorDescriptor { }; -// Logging and profiling. A StateTag represents a possible state of -// the VM. The logger maintains a stack of these. Creating a VMState -// object enters a state by pushing on the stack, and destroying a -// VMState object leaves a state by popping the current state from the -// stack. - -enum StateTag { - JS, - GC, - COMPILER, - OTHER, - EXTERNAL, - IDLE -}; - - // ----------------------------------------------------------------------------- // Macros @@ -609,28 +606,29 @@ enum StateTag { // CPU feature flags. enum CpuFeature { - // x86 - SSE4_1, - SSE3, - SAHF, - // ARM - VFP3, - ARMv7, - SUDIV, - MLS, - UNALIGNED_ACCESSES, - MOVW_MOVT_IMMEDIATE_LOADS, - VFP32DREGS, - NEON, - // MIPS, MIPS64 - FPU, - FP64FPU, - MIPSr1, - MIPSr2, - MIPSr6, - // ARM64 - ALWAYS_ALIGN_CSP, - NUMBER_OF_CPU_FEATURES + // x86 + SSE4_1, + SSE3, + SAHF, + // ARM + VFP3, + ARMv7, + ARMv8, + SUDIV, + MLS, + UNALIGNED_ACCESSES, + MOVW_MOVT_IMMEDIATE_LOADS, + VFP32DREGS, + NEON, + // MIPS, MIPS64 + FPU, + FP64FPU, + MIPSr1, + MIPSr2, + MIPSr6, + // ARM64 + ALWAYS_ALIGN_CSP, + NUMBER_OF_CPU_FEATURES }; @@ -649,7 +647,8 @@ enum ScopeType { GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval. CATCH_SCOPE, // The scope introduced by catch. BLOCK_SCOPE, // The scope introduced by a new block. - WITH_SCOPE // The scope introduced by with. + WITH_SCOPE, // The scope introduced by with. + ARROW_SCOPE // The top-level scope for an arrow function literal. }; |