Index: src/platform-posix.cc |
diff --git a/src/platform-posix.cc b/src/platform-posix.cc |
index cd2b9b9da4e3a34bd0cb80b5141b1258c1327ad8..13b819bd1e79c1452979961fd082c2af73171e56 100644 |
--- a/src/platform-posix.cc |
+++ b/src/platform-posix.cc |
@@ -101,6 +101,24 @@ intptr_t OS::MaxVirtualMemory() { |
} |
+int OS::ActivationFrameAlignment() { |
+#if V8_TARGET_ARCH_ARM |
+ // On EABI ARM targets this is required for fp correctness in the |
+ // runtime system. |
+ return 8; |
+#elif V8_TARGET_ARCH_MIPS |
+ return 8; |
+#else |
+ // Otherwise we just assume 16 byte alignment, i.e.: |
+ // - With gcc 4.4 the tree vectorization optimizer can generate code |
+ // that requires 16 byte alignment such as movdqa on x86. |
+ // - Mac OS X and Solaris (64-bit) activation frames must be 16 byte-aligned; |
+ // see "Mac OS X ABI Function Call Guide" |
+ return 16; |
+#endif |
+} |
+ |
+ |
intptr_t OS::CommitPageSize() { |
static intptr_t page_size = getpagesize(); |
return page_size; |