| Index: src/x64/virtual-frame-x64.cc
|
| ===================================================================
|
| --- src/x64/virtual-frame-x64.cc (revision 5332)
|
| +++ src/x64/virtual-frame-x64.cc (working copy)
|
| @@ -1230,9 +1230,9 @@
|
| // and receiver on the stack.
|
| Handle<Code> ic(Builtins::builtin(Builtins::JSConstructCall));
|
| // Duplicate the function before preparing the frame.
|
| - PushElementAt(arg_count + 1);
|
| + PushElementAt(arg_count);
|
| Result function = Pop();
|
| - PrepareForCall(arg_count + 1, arg_count + 1); // Spill args and receiver.
|
| + PrepareForCall(arg_count + 1, arg_count + 1); // Spill function and args.
|
| function.ToRegister(rdi);
|
|
|
| // Constructors are called with the number of arguments in register
|
|
|