| Index: runtime/vm/stub_code_x64.cc
|
| ===================================================================
|
| --- runtime/vm/stub_code_x64.cc (revision 27015)
|
| +++ runtime/vm/stub_code_x64.cc (working copy)
|
| @@ -61,7 +61,7 @@
|
|
|
| // Reserve space for arguments and align frame before entering C++ world.
|
| __ AddImmediate(RSP, Immediate(-sizeof(NativeArguments)));
|
| - if (OS::ActivationFrameAlignment() > 0) {
|
| + if (OS::ActivationFrameAlignment() > 1) {
|
| __ andq(RSP, Immediate(~(OS::ActivationFrameAlignment() - 1)));
|
| }
|
|
|
| @@ -151,7 +151,7 @@
|
| // outgoing pointer parameter to the native arguments structure is passed in
|
| // RDI) and align frame before entering the C++ world.
|
| __ AddImmediate(RSP, Immediate(-sizeof(NativeArguments)));
|
| - if (OS::ActivationFrameAlignment() > 0) {
|
| + if (OS::ActivationFrameAlignment() > 1) {
|
| __ andq(RSP, Immediate(~(OS::ActivationFrameAlignment() - 1)));
|
| }
|
|
|
| @@ -220,7 +220,7 @@
|
| // outgoing pointer parameter to the native arguments structure is passed in
|
| // RDI) and align frame before entering the C++ world.
|
| __ AddImmediate(RSP, Immediate(-sizeof(NativeArguments)));
|
| - if (OS::ActivationFrameAlignment() > 0) {
|
| + if (OS::ActivationFrameAlignment() > 1) {
|
| __ andq(RSP, Immediate(~(OS::ActivationFrameAlignment() - 1)));
|
| }
|
|
|
|
|