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