| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
| 6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
| 7 | 7 |
| 8 #include "include/v8stdint.h" | 8 #include "include/v8stdint.h" |
| 9 | 9 |
| 10 #include "src/base/build_config.h" | 10 #include "src/base/build_config.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 #endif | 59 #endif |
| 60 #if (V8_TARGET_ARCH_MIPS && !V8_HOST_ARCH_MIPS) | 60 #if (V8_TARGET_ARCH_MIPS && !V8_HOST_ARCH_MIPS) |
| 61 #define USE_SIMULATOR 1 | 61 #define USE_SIMULATOR 1 |
| 62 #endif | 62 #endif |
| 63 #if (V8_TARGET_ARCH_MIPS64 && !V8_HOST_ARCH_MIPS64) | 63 #if (V8_TARGET_ARCH_MIPS64 && !V8_HOST_ARCH_MIPS64) |
| 64 #define USE_SIMULATOR 1 | 64 #define USE_SIMULATOR 1 |
| 65 #endif | 65 #endif |
| 66 #endif | 66 #endif |
| 67 | 67 |
| 68 // Determine whether the architecture uses an out-of-line constant pool. | 68 // Determine whether the architecture uses an out-of-line constant pool. |
| 69 #if V8_TARGET_ARCH_ARM |
| 70 #define V8_OOL_CONSTANT_POOL 1 |
| 71 #else |
| 69 #define V8_OOL_CONSTANT_POOL 0 | 72 #define V8_OOL_CONSTANT_POOL 0 |
| 73 #endif |
| 70 | 74 |
| 71 #ifdef V8_TARGET_ARCH_ARM | 75 #ifdef V8_TARGET_ARCH_ARM |
| 72 // Set stack limit lower for ARM than for other architectures because | 76 // Set stack limit lower for ARM than for other architectures because |
| 73 // stack allocating MacroAssembler takes 120K bytes. | 77 // stack allocating MacroAssembler takes 120K bytes. |
| 74 // See issue crbug.com/405338 | 78 // See issue crbug.com/405338 |
| 75 #define V8_DEFAULT_STACK_SIZE_KB 864 | 79 #define V8_DEFAULT_STACK_SIZE_KB 864 |
| 76 #else | 80 #else |
| 77 // Slightly less than 1MB, since Windows' default stack size for | 81 // Slightly less than 1MB, since Windows' default stack size for |
| 78 // the main execution thread is 1MB for both 32 and 64-bit. | 82 // the main execution thread is 1MB for both 32 and 64-bit. |
| 79 #define V8_DEFAULT_STACK_SIZE_KB 984 | 83 #define V8_DEFAULT_STACK_SIZE_KB 984 |
| (...skipping 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 | 792 |
| 789 inline bool IsConciseMethod(FunctionKind kind) { | 793 inline bool IsConciseMethod(FunctionKind kind) { |
| 790 DCHECK(IsValidFunctionKind(kind)); | 794 DCHECK(IsValidFunctionKind(kind)); |
| 791 return kind & FunctionKind::kConciseMethod; | 795 return kind & FunctionKind::kConciseMethod; |
| 792 } | 796 } |
| 793 } } // namespace v8::internal | 797 } } // namespace v8::internal |
| 794 | 798 |
| 795 namespace i = v8::internal; | 799 namespace i = v8::internal; |
| 796 | 800 |
| 797 #endif // V8_GLOBALS_H_ | 801 #endif // V8_GLOBALS_H_ |
| OLD | NEW |