| Index: src/x87/builtins-x87.cc
|
| diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc
|
| index ef8956d03132ae62f46db50e598aa390c1360b72..89696f60fc03059bb615bdd0c6d4eff01b2099c2 100644
|
| --- a/src/x87/builtins-x87.cc
|
| +++ b/src/x87/builtins-x87.cc
|
| @@ -519,6 +519,9 @@ void Builtins::Generate_JSConstructStubForDerived(MacroAssembler* masm) {
|
| __ push(eax);
|
| __ SmiUntag(eax);
|
|
|
| + // Push new.target.
|
| + __ push(edx);
|
| +
|
| // receiver is the hole.
|
| __ push(Immediate(masm->isolate()->factory()->the_hole_value()));
|
|
|
| @@ -535,6 +538,7 @@ void Builtins::Generate_JSConstructStubForDerived(MacroAssembler* masm) {
|
| __ dec(ecx);
|
| __ j(greater_equal, &loop);
|
|
|
| + __ inc(eax); // Pushed new.target.
|
| ParameterCount actual(eax);
|
| __ InvokeFunction(edi, actual, CALL_FUNCTION, NullCallWrapper());
|
|
|
|
|