| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 #if CAN_USE_UNALIGNED_ACCESSES | 95 #if CAN_USE_UNALIGNED_ACCESSES |
| 96 #define V8_HOST_CAN_READ_UNALIGNED 1 | 96 #define V8_HOST_CAN_READ_UNALIGNED 1 |
| 97 #endif | 97 #endif |
| 98 #elif defined(__MIPSEL__) | 98 #elif defined(__MIPSEL__) |
| 99 #define V8_HOST_ARCH_MIPS 1 | 99 #define V8_HOST_ARCH_MIPS 1 |
| 100 #define V8_HOST_ARCH_32_BIT 1 | 100 #define V8_HOST_ARCH_32_BIT 1 |
| 101 #else | 101 #else |
| 102 #error Host architecture was not detected as supported by v8 | 102 #error Host architecture was not detected as supported by v8 |
| 103 #endif | 103 #endif |
| 104 | 104 |
| 105 #if defined(__ARM_ARCH_7A__) || \ |
| 106 defined(__ARM_ARCH_7R__) || \ |
| 107 defined(__ARM_ARCH_7__) |
| 108 # define CAN_USE_ARMV7_INSTRUCTIONS 1 |
| 109 # ifndef CAN_USE_VFP3_INSTRUCTIONS |
| 110 # define CAN_USE_VFP3_INSTRUCTIONS |
| 111 # endif |
| 112 #endif |
| 113 |
| 114 |
| 115 #ifdef V8_TARGET_ARCH_ARM |
| 116 // Simulator should support unaligned access by default. |
| 117 #if !defined(__arm__) |
| 118 # ifndef V8_HOST_CAN_READ_UNALIGNED |
| 119 # define V8_HOST_CAN_READ_UNALIGNED |
| 120 # endif |
| 121 #endif |
| 122 |
| 123 #if defined(CAN_USE_ARMV7_INSTRUCTIONS) |
| 124 # ifndef V8_HOST_CAN_READ_UNALIGNED |
| 125 # define V8_HOST_CAN_READ_UNALIGNED |
| 126 # endif |
| 127 #endif |
| 128 #endif |
| 129 |
| 130 |
| 105 // Target architecture detection. This may be set externally. If not, detect | 131 // Target architecture detection. This may be set externally. If not, detect |
| 106 // in the same way as the host architecture, that is, target the native | 132 // in the same way as the host architecture, that is, target the native |
| 107 // environment as presented by the compiler. | 133 // environment as presented by the compiler. |
| 108 #if !defined(V8_TARGET_ARCH_X64) && !defined(V8_TARGET_ARCH_IA32) && \ | 134 #if !defined(V8_TARGET_ARCH_X64) && !defined(V8_TARGET_ARCH_IA32) && \ |
| 109 !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_MIPS) | 135 !defined(V8_TARGET_ARCH_ARM) && !defined(V8_TARGET_ARCH_MIPS) |
| 110 #if defined(_M_X64) || defined(__x86_64__) | 136 #if defined(_M_X64) || defined(__x86_64__) |
| 111 #define V8_TARGET_ARCH_X64 1 | 137 #define V8_TARGET_ARCH_X64 1 |
| 112 #elif defined(_M_IX86) || defined(__i386__) | 138 #elif defined(_M_IX86) || defined(__i386__) |
| 113 #define V8_TARGET_ARCH_IA32 1 | 139 #define V8_TARGET_ARCH_IA32 1 |
| 114 #elif defined(__ARMEL__) | 140 #elif defined(__ARMEL__) |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 // the backend, so both modes are represented by the kStrictMode value. | 457 // the backend, so both modes are represented by the kStrictMode value. |
| 432 enum StrictModeFlag { | 458 enum StrictModeFlag { |
| 433 kNonStrictMode, | 459 kNonStrictMode, |
| 434 kStrictMode | 460 kStrictMode |
| 435 }; | 461 }; |
| 436 | 462 |
| 437 | 463 |
| 438 } } // namespace v8::internal | 464 } } // namespace v8::internal |
| 439 | 465 |
| 440 #endif // V8_GLOBALS_H_ | 466 #endif // V8_GLOBALS_H_ |
| OLD | NEW |