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