8-byte align C stack on Linux and Windows.
authorerik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 12 Mar 2009 10:20:32 +0000 (10:20 +0000)
committererik.corry@gmail.com <erik.corry@gmail.com@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 12 Mar 2009 10:20:32 +0000 (10:20 +0000)
Review URL: http://codereview.chromium.org/42116

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@1496 ce2b1a6d-e550-0410-aec6-3dcde31c8c00

src/platform-linux.cc
src/platform-win32.cc

index 09eee2e..05013eb 100644 (file)
@@ -212,8 +212,8 @@ double OS::nan_value() {
 
 
 int OS::ActivationFrameAlignment() {
-  // No constraint on Linux.
-  return 0;
+  // Floating point code runs faster if the stack is 8-byte aligned.
+  return 8;
 }
 
 
index fd65738..4e98964 100644 (file)
@@ -1298,8 +1298,8 @@ double OS::nan_value() {
 
 
 int OS::ActivationFrameAlignment() {
-  // No constraint on Windows.
-  return 0;
+  // Floating point code runs faster if the stack is 8-byte aligned.
+  return 8;
 }