| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 #define USE_SIMULATOR 1 | 62 #define USE_SIMULATOR 1 |
| 63 #endif | 63 #endif |
| 64 #if (V8_TARGET_ARCH_MIPS64 && !V8_HOST_ARCH_MIPS64) | 64 #if (V8_TARGET_ARCH_MIPS64 && !V8_HOST_ARCH_MIPS64) |
| 65 #define USE_SIMULATOR 1 | 65 #define USE_SIMULATOR 1 |
| 66 #endif | 66 #endif |
| 67 #endif | 67 #endif |
| 68 | 68 |
| 69 // Determine whether the architecture uses an out-of-line constant pool. | 69 // Determine whether the architecture uses an out-of-line constant pool. |
| 70 #define V8_OOL_CONSTANT_POOL 0 | 70 #define V8_OOL_CONSTANT_POOL 0 |
| 71 | 71 |
| 72 #ifdef V8_TARGET_ARCH_ARM |
| 73 // Set stack limit lower for ARM than for other architectures because |
| 74 // stack allocating MacroAssembler takes 120K bytes. |
| 75 // See issue crbug.com/405338 |
| 76 #define V8_DEFAULT_STACK_SIZE_KB 864 |
| 77 #else |
| 78 // Slightly less than 1MB, since Windows' default stack size for |
| 79 // the main execution thread is 1MB for both 32 and 64-bit. |
| 80 #define V8_DEFAULT_STACK_SIZE_KB 984 |
| 81 #endif |
| 82 |
| 83 |
| 72 // Support for alternative bool type. This is only enabled if the code is | 84 // Support for alternative bool type. This is only enabled if the code is |
| 73 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. | 85 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. |
| 74 // For instance, 'bool b = "false";' results in b == true! This is a hidden | 86 // For instance, 'bool b = "false";' results in b == true! This is a hidden |
| 75 // source of bugs. | 87 // source of bugs. |
| 76 // However, redefining the bool type does have some negative impact on some | 88 // However, redefining the bool type does have some negative impact on some |
| 77 // platforms. It gives rise to compiler warnings (i.e. with | 89 // platforms. It gives rise to compiler warnings (i.e. with |
| 78 // MSVC) in the API header files when mixing code that uses the standard | 90 // MSVC) in the API header files when mixing code that uses the standard |
| 79 // bool with code that uses the redefined version. | 91 // bool with code that uses the redefined version. |
| 80 // This does not actually belong in the platform code, but needs to be | 92 // This does not actually belong in the platform code, but needs to be |
| 81 // defined here because the platform code uses bool, and platform.h is | 93 // defined here because the platform code uses bool, and platform.h is |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 751 enum MinusZeroMode { | 763 enum MinusZeroMode { |
| 752 TREAT_MINUS_ZERO_AS_ZERO, | 764 TREAT_MINUS_ZERO_AS_ZERO, |
| 753 FAIL_ON_MINUS_ZERO | 765 FAIL_ON_MINUS_ZERO |
| 754 }; | 766 }; |
| 755 | 767 |
| 756 } } // namespace v8::internal | 768 } } // namespace v8::internal |
| 757 | 769 |
| 758 namespace i = v8::internal; | 770 namespace i = v8::internal; |
| 759 | 771 |
| 760 #endif // V8_GLOBALS_H_ | 772 #endif // V8_GLOBALS_H_ |
| OLD | NEW |