Chromium Code Reviews| Index: vm/flow_graph_compiler_x64.cc |
| =================================================================== |
| --- vm/flow_graph_compiler_x64.cc (revision 7573) |
| +++ vm/flow_graph_compiler_x64.cc (working copy) |
| @@ -1450,6 +1450,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/copied parms etc. |
| + // for this method as the NoSuchMethodFunction stub does not expect to |
|
regis
2012/05/14 16:25:16
ditto
siva
2012/05/15 21:51:15
Done.
|
| + // see that area on the stack. |
| + __ addq(RSP, Immediate(StackSize() * kWordSize)); |
| + } |
| if (function.IsClosureFunction()) { |
| GenerateCallRuntime(AstNode::kNoId, |
| 0, |