Chromium Code Reviews| Index: src/platform-win32.cc |
| =================================================================== |
| --- src/platform-win32.cc (revision 2771) |
| +++ src/platform-win32.cc (working copy) |
| @@ -1317,8 +1317,11 @@ |
| int OS::ActivationFrameAlignment() { |
| - // Floating point code runs faster if the stack is 8-byte aligned. |
| - return 8; |
| +#ifdef _WIN64 |
| + return 16; // C math library requires the stack to be 16-byte aligned. |
|
Søren Thygesen Gjesse
2009/08/27 11:18:14
Is this only for math?
William Hesse
2009/08/27 11:26:12
I don't know.
Lasse Reichstein
2009/08/27 11:35:28
No, this is for all function calls in Win64.
See h
|
| +#else |
| + return 8; // Floating-point math runs faster if stack is at least 8-byte aligned. |
| +#endif |
| } |