Index: src/globals.h |
diff --git a/src/globals.h b/src/globals.h |
index 573e19a03ddce49e2324a1820a1b76d33e4425ac..5a5fb4e03ea9931a8e9e786bcfdf92e76ac53c9b 100644 |
--- a/src/globals.h |
+++ b/src/globals.h |
@@ -102,6 +102,32 @@ 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 |
+ |
+ |
+#ifdef V8_TARGET_ARCH_ARM |
+// Simulator should support unaligned access by default. |
+#if !defined(__arm__) |
+# ifndef V8_HOST_CAN_READ_UNALIGNED |
+# define V8_HOST_CAN_READ_UNALIGNED |
+# endif |
+#endif |
+ |
+#if defined(CAN_USE_ARMV7_INSTRUCTIONS) |
+# ifndef V8_HOST_CAN_READ_UNALIGNED |
+# define V8_HOST_CAN_READ_UNALIGNED |
+# endif |
+#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. |