diff options
author | Fedor Indutny <fedor@indutny.com> | 2014-10-10 14:49:02 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-10-10 14:49:02 +0400 |
commit | 6bcea4ff932144a5fd02affefd45164fbf471e67 (patch) | |
tree | a8e078c679b12f0daebe10ed254239cb0d79e146 /deps/v8/src/globals.h | |
parent | 4fae2356d105e394115188a814097c4a95ae0c5d (diff) | |
download | node-new-6bcea4ff932144a5fd02affefd45164fbf471e67.tar.gz |
deps: update v8 to 3.29.93.1
Diffstat (limited to 'deps/v8/src/globals.h')
-rw-r--r-- | deps/v8/src/globals.h | 56 |
1 files changed, 55 insertions, 1 deletions
diff --git a/deps/v8/src/globals.h b/deps/v8/src/globals.h index 258707493e..609ab8871f 100644 --- a/deps/v8/src/globals.h +++ b/deps/v8/src/globals.h @@ -68,6 +68,18 @@ namespace internal { // Determine whether the architecture uses an out-of-line constant pool. #define V8_OOL_CONSTANT_POOL 0 +#ifdef V8_TARGET_ARCH_ARM +// Set stack limit lower for ARM than for other architectures because +// stack allocating MacroAssembler takes 120K bytes. +// See issue crbug.com/405338 +#define V8_DEFAULT_STACK_SIZE_KB 864 +#else +// Slightly less than 1MB, since Windows' default stack size for +// the main execution thread is 1MB for both 32 and 64-bit. +#define V8_DEFAULT_STACK_SIZE_KB 984 +#endif + + // Support for alternative bool type. This is only enabled if the code is // compiled with USE_MYBOOL defined. This catches some nasty type bugs. // For instance, 'bool b = "false";' results in b == true! This is a hidden @@ -610,8 +622,12 @@ enum CpuFeature { MOVW_MOVT_IMMEDIATE_LOADS, VFP32DREGS, NEON, - // MIPS + // MIPS, MIPS64 FPU, + FP64FPU, + MIPSr1, + MIPSr2, + MIPSr6, // ARM64 ALWAYS_ALIGN_CSP, NUMBER_OF_CPU_FEATURES @@ -752,6 +768,44 @@ enum MinusZeroMode { FAIL_ON_MINUS_ZERO }; + +enum Signedness { kSigned, kUnsigned }; + + +enum FunctionKind { + kNormalFunction = 0, + kArrowFunction = 1, + kGeneratorFunction = 2, + kConciseMethod = 4, + kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod +}; + + +inline bool IsValidFunctionKind(FunctionKind kind) { + return kind == FunctionKind::kNormalFunction || + kind == FunctionKind::kArrowFunction || + kind == FunctionKind::kGeneratorFunction || + kind == FunctionKind::kConciseMethod || + kind == FunctionKind::kConciseGeneratorMethod; +} + + +inline bool IsArrowFunction(FunctionKind kind) { + DCHECK(IsValidFunctionKind(kind)); + return kind & FunctionKind::kArrowFunction; +} + + +inline bool IsGeneratorFunction(FunctionKind kind) { + DCHECK(IsValidFunctionKind(kind)); + return kind & FunctionKind::kGeneratorFunction; +} + + +inline bool IsConciseMethod(FunctionKind kind) { + DCHECK(IsValidFunctionKind(kind)); + return kind & FunctionKind::kConciseMethod; +} } } // namespace v8::internal namespace i = v8::internal; |