| Index: src/globals.h
|
| diff --git a/src/globals.h b/src/globals.h
|
| index 438484d9200c476b6f75dcb6156e541bfe406537..225fd2581c6e82badbc9fbaf9ab13f11a38917b2 100644
|
| --- a/src/globals.h
|
| +++ b/src/globals.h
|
| @@ -93,12 +93,6 @@ namespace internal {
|
| #elif defined(__ARMEL__)
|
| #define V8_HOST_ARCH_ARM 1
|
| #define V8_HOST_ARCH_32_BIT 1
|
| -// Some CPU-OS combinations allow unaligned access on ARM. We assume
|
| -// that unaligned accesses are not allowed unless the build system
|
| -// defines the CAN_USE_UNALIGNED_ACCESSES macro to be non-zero.
|
| -#if CAN_USE_UNALIGNED_ACCESSES
|
| -#define V8_HOST_CAN_READ_UNALIGNED 1
|
| -#endif
|
| #elif defined(__MIPSEL__)
|
| #define V8_HOST_ARCH_MIPS 1
|
| #define V8_HOST_ARCH_32_BIT 1
|
| @@ -106,6 +100,16 @@ namespace internal {
|
| #error "Host architecture was not detected as supported by v8"
|
| #endif
|
|
|
| +#if defined(__ARM_ARCH_7A__) || \
|
| + defined(__ARM_ARCH_7R__) || \
|
| + defined(__ARM_ARCH_7__)
|
| +# define CAN_USE_ARMV7_INSTRUCTIONS 1
|
| +# ifndef CAN_USE_VFP3_INSTRUCTIONS
|
| +# define CAN_USE_VFP3_INSTRUCTIONS
|
| +# endif
|
| +#endif
|
| +
|
| +
|
| // Target architecture detection. This may be set externally. If not, detect
|
| // in the same way as the host architecture, that is, target the native
|
| // environment as presented by the compiler.
|
|
|