Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1213)

Unified Diff: src/globals.h

Issue 17858002: ARM: Implement memcpy using NEON. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed lint issues. Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698