| Index: vm/flow_graph_compiler_x64.cc
|
| ===================================================================
|
| --- vm/flow_graph_compiler_x64.cc (revision 7165)
|
| +++ vm/flow_graph_compiler_x64.cc (working copy)
|
| @@ -1140,8 +1140,11 @@
|
| // popping arguments has not been run.
|
| const intptr_t locals_space_size = StackSize() * kWordSize;
|
| ASSERT(locals_space_size >= 0);
|
| - __ movq(RSP, RBP);
|
| - __ subq(RSP, Immediate(locals_space_size));
|
| + if (locals_space_size == 0) {
|
| + __ movq(RSP, RBP);
|
| + } else {
|
| + __ leaq(RSP, Address(RBP, -locals_space_size));
|
| + }
|
|
|
| ASSERT(!comp->exception_var().is_captured());
|
| ASSERT(!comp->stacktrace_var().is_captured());
|
|
|