Index: src/x87/builtins-x87.cc |
diff --git a/src/x87/builtins-x87.cc b/src/x87/builtins-x87.cc |
index 311290ff2f96a7e10f266458fbb6b696b324d942..4d149bcbbdaabdc9e45a544171907ad1e2c76e4f 100644 |
--- a/src/x87/builtins-x87.cc |
+++ b/src/x87/builtins-x87.cc |
@@ -538,9 +538,6 @@ void Builtins::Generate_JSConstructStubForDerived(MacroAssembler* masm) { |
__ dec(ecx); |
__ j(greater_equal, &loop); |
- __ inc(eax); // Pushed new.target. |
- |
- |
// Handle step in. |
Label skip_step_in; |
ExternalReference debug_step_in_fp = |
@@ -564,7 +561,8 @@ void Builtins::Generate_JSConstructStubForDerived(MacroAssembler* masm) { |
// Restore context from the frame. |
__ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
- __ mov(ebx, Operand(esp, 0)); |
+ // Get arguments count, skipping over new.target. |
+ __ mov(ebx, Operand(esp, kPointerSize)); |
} |
__ pop(ecx); // Return address. |