Index: src/x64/builtins-x64.cc |
diff --git a/src/x64/builtins-x64.cc b/src/x64/builtins-x64.cc |
index 80a41dde16c6d06b570347c9d2772fb1795db1b3..ca23b369234953fca11edbe9658e53f78f539969 100644 |
--- a/src/x64/builtins-x64.cc |
+++ b/src/x64/builtins-x64.cc |
@@ -516,6 +516,9 @@ void Builtins::Generate_JSConstructStubForDerived(MacroAssembler* masm) { |
__ Push(rax); |
__ SmiToInteger32(rax, rax); |
+ // Push new.target |
+ __ Push(rdx); |
+ |
// receiver is the hole. |
__ Push(masm->isolate()->factory()->the_hole_value()); |
@@ -533,6 +536,7 @@ void Builtins::Generate_JSConstructStubForDerived(MacroAssembler* masm) { |
__ j(greater_equal, &loop); |
// Call the function. |
+ __ incp(rax); // Pushed new.target. |
ParameterCount actual(rax); |
__ InvokeFunction(rdi, actual, CALL_FUNCTION, NullCallWrapper()); |