| Index: src/x87/builtins-x87.cc
|
| diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc
|
| index 2e2bcd3603a9f76ef32025e7a8fc2464b9bf1680..1036effcacd4bbef88f72e0780ce6349ed056120 100644
|
| --- a/src/x87/builtins-x87.cc
|
| +++ b/src/x87/builtins-x87.cc
|
| @@ -1172,8 +1172,7 @@ static void Generate_ConstructHelper(MacroAssembler* masm) {
|
| const int kIndexOffset = kLimitOffset - 1 * kPointerSize;
|
| __ Push(eax); // limit
|
| __ push(Immediate(0)); // index
|
| - // Push newTarget and callee functions
|
| - __ push(Operand(ebp, kNewTargetOffset));
|
| + // Push the constructor function as callee.
|
| __ push(Operand(ebp, kFunctionOffset));
|
|
|
| // Loop over the arguments array, pushing each value to the stack
|
| @@ -1183,13 +1182,12 @@ static void Generate_ConstructHelper(MacroAssembler* masm) {
|
| // Use undefined feedback vector
|
| __ LoadRoot(ebx, Heap::kUndefinedValueRootIndex);
|
| __ mov(edi, Operand(ebp, kFunctionOffset));
|
| + __ mov(ecx, Operand(ebp, kNewTargetOffset));
|
|
|
| // Call the function.
|
| CallConstructStub stub(masm->isolate(), SUPER_CONSTRUCTOR_CALL);
|
| __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
|
|
|
| - __ Drop(1);
|
| -
|
| // Leave internal frame.
|
| }
|
| // remove this, target, arguments, and newTarget
|
|
|