| Index: vm/flow_graph_compiler_x64.cc
|
| ===================================================================
|
| --- vm/flow_graph_compiler_x64.cc (revision 7667)
|
| +++ vm/flow_graph_compiler_x64.cc (working copy)
|
| @@ -1428,6 +1428,12 @@
|
| __ j(EQUAL, &all_arguments_processed, Assembler::kNearJump);
|
|
|
| __ Bind(&wrong_num_arguments);
|
| + if (StackSize() != 0) {
|
| + // We need to unwind the space we reserved for locals and copied parmeters.
|
| + // The NoSuchMethodFunction stub does not expect to see that area on the
|
| + // stack.
|
| + __ addq(RSP, Immediate(StackSize() * kWordSize));
|
| + }
|
| if (function.IsClosureFunction()) {
|
| GenerateCallRuntime(AstNode::kNoId,
|
| 0,
|
|
|