Chromium Code Reviews| 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 <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 66 #endif | 66 #endif |
| 67 #if (V8_TARGET_ARCH_MIPS && !V8_HOST_ARCH_MIPS) | 67 #if (V8_TARGET_ARCH_MIPS && !V8_HOST_ARCH_MIPS) |
| 68 #define USE_SIMULATOR 1 | 68 #define USE_SIMULATOR 1 |
| 69 #endif | 69 #endif |
| 70 #if (V8_TARGET_ARCH_MIPS64 && !V8_HOST_ARCH_MIPS64) | 70 #if (V8_TARGET_ARCH_MIPS64 && !V8_HOST_ARCH_MIPS64) |
| 71 #define USE_SIMULATOR 1 | 71 #define USE_SIMULATOR 1 |
| 72 #endif | 72 #endif |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 // Determine whether the architecture uses an out-of-line constant pool. | 75 // Determine whether the architecture uses an out-of-line constant pool. |
| 76 #if V8_TARGET_ARCH_PPC | |
| 77 #define V8_OOL_CONSTANT_POOL 1 | |
|
Sven Panne
2015/02/06 07:28:00
FYI (after some internal discussions): The OOL con
| |
| 78 #else | |
| 76 #define V8_OOL_CONSTANT_POOL 0 | 79 #define V8_OOL_CONSTANT_POOL 0 |
| 80 #endif | |
| 77 | 81 |
| 78 #ifdef V8_TARGET_ARCH_ARM | 82 #ifdef V8_TARGET_ARCH_ARM |
| 79 // Set stack limit lower for ARM than for other architectures because | 83 // Set stack limit lower for ARM than for other architectures because |
| 80 // stack allocating MacroAssembler takes 120K bytes. | 84 // stack allocating MacroAssembler takes 120K bytes. |
| 81 // See issue crbug.com/405338 | 85 // See issue crbug.com/405338 |
| 82 #define V8_DEFAULT_STACK_SIZE_KB 864 | 86 #define V8_DEFAULT_STACK_SIZE_KB 864 |
| 83 #else | 87 #else |
| 84 // Slightly less than 1MB, since Windows' default stack size for | 88 // Slightly less than 1MB, since Windows' default stack size for |
| 85 // the main execution thread is 1MB for both 32 and 64-bit. | 89 // the main execution thread is 1MB for both 32 and 64-bit. |
| 86 #define V8_DEFAULT_STACK_SIZE_KB 984 | 90 #define V8_DEFAULT_STACK_SIZE_KB 984 |
| (...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 859 | 863 |
| 860 inline bool IsSubclassConstructor(FunctionKind kind) { | 864 inline bool IsSubclassConstructor(FunctionKind kind) { |
| 861 DCHECK(IsValidFunctionKind(kind)); | 865 DCHECK(IsValidFunctionKind(kind)); |
| 862 return kind & FunctionKind::kSubclassConstructor; | 866 return kind & FunctionKind::kSubclassConstructor; |
| 863 } | 867 } |
| 864 } } // namespace v8::internal | 868 } } // namespace v8::internal |
| 865 | 869 |
| 866 namespace i = v8::internal; | 870 namespace i = v8::internal; |
| 867 | 871 |
| 868 #endif // V8_GLOBALS_H_ | 872 #endif // V8_GLOBALS_H_ |
| OLD | NEW |