OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 #elif V8_TARGET_ARCH_ARM | 155 #elif V8_TARGET_ARCH_ARM |
156 #define V8_TARGET_LITTLE_ENDIAN 1 | 156 #define V8_TARGET_LITTLE_ENDIAN 1 |
157 #elif V8_TARGET_ARCH_A64 | 157 #elif V8_TARGET_ARCH_A64 |
158 #define V8_TARGET_LITTLE_ENDIAN 1 | 158 #define V8_TARGET_LITTLE_ENDIAN 1 |
159 #elif V8_TARGET_ARCH_MIPS | 159 #elif V8_TARGET_ARCH_MIPS |
160 #define V8_TARGET_LITTLE_ENDIAN 1 | 160 #define V8_TARGET_LITTLE_ENDIAN 1 |
161 #else | 161 #else |
162 #error Unknown target architecture endiannes | 162 #error Unknown target architecture endiannes |
163 #endif | 163 #endif |
164 | 164 |
| 165 // Determine whether the architecture uses an out-of-line constant pool. |
| 166 #define V8_OOL_CONSTANT_POOL 0 |
| 167 |
165 // Support for alternative bool type. This is only enabled if the code is | 168 // Support for alternative bool type. This is only enabled if the code is |
166 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. | 169 // compiled with USE_MYBOOL defined. This catches some nasty type bugs. |
167 // For instance, 'bool b = "false";' results in b == true! This is a hidden | 170 // For instance, 'bool b = "false";' results in b == true! This is a hidden |
168 // source of bugs. | 171 // source of bugs. |
169 // However, redefining the bool type does have some negative impact on some | 172 // However, redefining the bool type does have some negative impact on some |
170 // platforms. It gives rise to compiler warnings (i.e. with | 173 // platforms. It gives rise to compiler warnings (i.e. with |
171 // MSVC) in the API header files when mixing code that uses the standard | 174 // MSVC) in the API header files when mixing code that uses the standard |
172 // bool with code that uses the redefined version. | 175 // bool with code that uses the redefined version. |
173 // This does not actually belong in the platform code, but needs to be | 176 // This does not actually belong in the platform code, but needs to be |
174 // defined here because the platform code uses bool, and platform.h is | 177 // defined here because the platform code uses bool, and platform.h is |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
408 // Declarations for use in both the preparser and the rest of V8. | 411 // Declarations for use in both the preparser and the rest of V8. |
409 | 412 |
410 // The Strict Mode (ECMA-262 5th edition, 4.2.2). | 413 // The Strict Mode (ECMA-262 5th edition, 4.2.2). |
411 | 414 |
412 enum StrictMode { SLOPPY, STRICT }; | 415 enum StrictMode { SLOPPY, STRICT }; |
413 | 416 |
414 | 417 |
415 } } // namespace v8::internal | 418 } } // namespace v8::internal |
416 | 419 |
417 #endif // V8_GLOBALS_H_ | 420 #endif // V8_GLOBALS_H_ |
OLD | NEW |