| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_BASE_BUILD_CONFIG_H_ | 5 #ifndef V8_BASE_BUILD_CONFIG_H_ |
| 6 #define V8_BASE_BUILD_CONFIG_H_ | 6 #define V8_BASE_BUILD_CONFIG_H_ |
| 7 | 7 |
| 8 #include "include/v8config.h" | 8 #include "include/v8config.h" |
| 9 | 9 |
| 10 // Processor architecture detection. For more info on what's defined, see: | 10 // Processor architecture detection. For more info on what's defined, see: |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 #if defined(__ARM_ARCH_7A__) || \ | 48 #if defined(__ARM_ARCH_7A__) || \ |
| 49 defined(__ARM_ARCH_7R__) || \ | 49 defined(__ARM_ARCH_7R__) || \ |
| 50 defined(__ARM_ARCH_7__) | 50 defined(__ARM_ARCH_7__) |
| 51 # define CAN_USE_ARMV7_INSTRUCTIONS 1 | 51 # define CAN_USE_ARMV7_INSTRUCTIONS 1 |
| 52 # ifndef CAN_USE_VFP3_INSTRUCTIONS | 52 # ifndef CAN_USE_VFP3_INSTRUCTIONS |
| 53 # define CAN_USE_VFP3_INSTRUCTIONS | 53 # define CAN_USE_VFP3_INSTRUCTIONS |
| 54 # endif | 54 # endif |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 | 57 |
| 58 #if defined(__ARM_ARCH_8A__) || \ |
| 59 defined(__ARM_ARCH_8R__) || \ |
| 60 defined(__ARM_ARCH_8__) |
| 61 # define CAN_USE_ARMV8_INSTRUCTIONS 1 |
| 62 # ifndef CAN_USE_ARMV7_INSTRUCTIONS |
| 63 # define CAN_USE_ARMV7_INSTRUCTIONS 1 |
| 64 # endif |
| 65 # ifndef CAN_USE_VFP3_INSTRUCTIONS |
| 66 # define CAN_USE_VFP3_INSTRUCTIONS |
| 67 # endif |
| 68 # ifndef CAN_USE_VFP32DREGS |
| 69 # define CAN_USE_VFP32DREGS |
| 70 # endif |
| 71 # ifndef CAN_USE_NEON |
| 72 # define CAN_USE_NEON |
| 73 #endif |
| 74 #endif |
| 75 |
| 76 |
| 58 // Target architecture detection. This may be set externally. If not, detect | 77 // Target architecture detection. This may be set externally. If not, detect |
| 59 // in the same way as the host architecture, that is, target the native | 78 // in the same way as the host architecture, that is, target the native |
| 60 // environment as presented by the compiler. | 79 // environment as presented by the compiler. |
| 61 #if !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_IA32 && !V8_TARGET_ARCH_X87 && \ | 80 #if !V8_TARGET_ARCH_X64 && !V8_TARGET_ARCH_IA32 && !V8_TARGET_ARCH_X87 && \ |
| 62 !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 && !V8_TARGET_ARCH_MIPS | 81 !V8_TARGET_ARCH_ARM && !V8_TARGET_ARCH_ARM64 && !V8_TARGET_ARCH_MIPS |
| 63 #if defined(_M_X64) || defined(__x86_64__) | 82 #if defined(_M_X64) || defined(__x86_64__) |
| 64 #define V8_TARGET_ARCH_X64 1 | 83 #define V8_TARGET_ARCH_X64 1 |
| 65 #elif defined(_M_IX86) || defined(__i386__) | 84 #elif defined(_M_IX86) || defined(__i386__) |
| 66 #define V8_TARGET_ARCH_IA32 1 | 85 #define V8_TARGET_ARCH_IA32 1 |
| 67 #elif defined(__AARCH64EL__) | 86 #elif defined(__AARCH64EL__) |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 #define V8_TARGET_LITTLE_ENDIAN 1 | 130 #define V8_TARGET_LITTLE_ENDIAN 1 |
| 112 #else | 131 #else |
| 113 #error Unknown target architecture endianness | 132 #error Unknown target architecture endianness |
| 114 #endif | 133 #endif |
| 115 | 134 |
| 116 #if V8_OS_MACOSX || defined(__FreeBSD__) || defined(__OpenBSD__) | 135 #if V8_OS_MACOSX || defined(__FreeBSD__) || defined(__OpenBSD__) |
| 117 #define USING_BSD_ABI | 136 #define USING_BSD_ABI |
| 118 #endif | 137 #endif |
| 119 | 138 |
| 120 #endif // V8_BASE_BUILD_CONFIG_H_ | 139 #endif // V8_BASE_BUILD_CONFIG_H_ |
| OLD | NEW |