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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #endif | 44 #endif |
45 #if (V8_TARGET_ARCH_ARM && !V8_HOST_ARCH_ARM) | 45 #if (V8_TARGET_ARCH_ARM && !V8_HOST_ARCH_ARM) |
46 #define USE_SIMULATOR 1 | 46 #define USE_SIMULATOR 1 |
47 #endif | 47 #endif |
48 #if (V8_TARGET_ARCH_MIPS && !V8_HOST_ARCH_MIPS) | 48 #if (V8_TARGET_ARCH_MIPS && !V8_HOST_ARCH_MIPS) |
49 #define USE_SIMULATOR 1 | 49 #define USE_SIMULATOR 1 |
50 #endif | 50 #endif |
51 #endif | 51 #endif |
52 | 52 |
53 // Determine whether the architecture uses an out-of-line constant pool. | 53 // Determine whether the architecture uses an out-of-line constant pool. |
| 54 #if V8_TARGET_ARCH_ARM |
| 55 #define V8_OOL_CONSTANT_POOL 1 |
| 56 #else |
54 #define V8_OOL_CONSTANT_POOL 0 | 57 #define V8_OOL_CONSTANT_POOL 0 |
| 58 #endif |
55 | 59 |
56 // Support for alternative bool type. This is only enabled if the code is | 60 // Support for alternative bool type. This is only enabled if the code is |
57 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. | 61 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. |
58 // For instance, 'bool b = "false";' results in b == true! This is a hidden | 62 // For instance, 'bool b = "false";' results in b == true! This is a hidden |
59 // source of bugs. | 63 // source of bugs. |
60 // However, redefining the bool type does have some negative impact on some | 64 // However, redefining the bool type does have some negative impact on some |
61 // platforms. It gives rise to compiler warnings (i.e. with | 65 // platforms. It gives rise to compiler warnings (i.e. with |
62 // MSVC) in the API header files when mixing code that uses the standard | 66 // MSVC) in the API header files when mixing code that uses the standard |
63 // bool with code that uses the redefined version. | 67 // bool with code that uses the redefined version. |
64 // This does not actually belong in the platform code, but needs to be | 68 // This does not actually belong in the platform code, but needs to be |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 enum MinusZeroMode { | 726 enum MinusZeroMode { |
723 TREAT_MINUS_ZERO_AS_ZERO, | 727 TREAT_MINUS_ZERO_AS_ZERO, |
724 FAIL_ON_MINUS_ZERO | 728 FAIL_ON_MINUS_ZERO |
725 }; | 729 }; |
726 | 730 |
727 } } // namespace v8::internal | 731 } } // namespace v8::internal |
728 | 732 |
729 namespace i = v8::internal; | 733 namespace i = v8::internal; |
730 | 734 |
731 #endif // V8_GLOBALS_H_ | 735 #endif // V8_GLOBALS_H_ |
OLD | NEW |