Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index 2f8d3b952c73a6a516fe93bda5b756566f286fa1..4c34a08b2d2f32d21441c0888cf02b2d7591ed31 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -799,8 +799,6 @@ void Builtins::Generate_JSConstructStubForDerived(MacroAssembler* masm) { |
__ Subu(t0, t0, Operand(2)); |
__ Branch(&loop, ge, t0, Operand(zero_reg)); |
- __ Addu(a0, a0, Operand(1)); |
- |
// Handle step in. |
Label skip_step_in; |
ExternalReference debug_step_in_fp = |
@@ -823,9 +821,10 @@ void Builtins::Generate_JSConstructStubForDerived(MacroAssembler* masm) { |
// Restore context from the frame. |
// v0: result |
- // sp[0]: number of arguments (smi-tagged) |
+ // sp[0]: new.target |
+ // sp[1]: number of arguments (smi-tagged) |
__ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); |
- __ lw(a1, MemOperand(sp, 0)); |
+ __ lw(a1, MemOperand(sp, kPointerSize)); |
// Leave construct frame. |
} |