Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index baacf5226ed567e48a92e677afe7d0a82c567bf3..f00e676dde9866b9eb7bb2005d80ed4766da46a2 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -89,12 +89,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 |
@@ -102,6 +96,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. |