| 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 // Support for alternative bool type. This is only enabled if the code is | 75 // Support for alternative bool type. This is only enabled if the code is |
| 72 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. | 76 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. |
| 73 // For instance, 'bool b = "false";' results in b == true! This is a hidden | 77 // For instance, 'bool b = "false";' results in b == true! This is a hidden |
| 74 // source of bugs. | 78 // source of bugs. |
| 75 // However, redefining the bool type does have some negative impact on some | 79 // However, redefining the bool type does have some negative impact on some |
| 76 // platforms. It gives rise to compiler warnings (i.e. with | 80 // platforms. It gives rise to compiler warnings (i.e. with |
| 77 // MSVC) in the API header files when mixing code that uses the standard | 81 // MSVC) in the API header files when mixing code that uses the standard |
| 78 // bool with code that uses the redefined version. | 82 // bool with code that uses the redefined version. |
| 79 // This does not actually belong in the platform code, but needs to be | 83 // This does not actually belong in the platform code, but needs to be |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 enum MinusZeroMode { | 758 enum MinusZeroMode { |
| 755 TREAT_MINUS_ZERO_AS_ZERO, | 759 TREAT_MINUS_ZERO_AS_ZERO, |
| 756 FAIL_ON_MINUS_ZERO | 760 FAIL_ON_MINUS_ZERO |
| 757 }; | 761 }; |
| 758 | 762 |
| 759 } } // namespace v8::internal | 763 } } // namespace v8::internal |
| 760 | 764 |
| 761 namespace i = v8::internal; | 765 namespace i = v8::internal; |
| 762 | 766 |
| 763 #endif // V8_GLOBALS_H_ | 767 #endif // V8_GLOBALS_H_ |
| OLD | NEW |