Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 1b84534d626fec2fb855d81205c9b0e0ab1d43be..c5f4b7ad93cb7c3103e8c1f495f81927bec2707b 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -1623,7 +1623,6 @@ void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { |
- CHECK(!has_new_target()); |
// The displacement is the offset of the last parameter (if any) |
// relative to the frame pointer. |
const int kDisplacement = |
@@ -1683,8 +1682,6 @@ void ArgumentsAccessStub::GenerateNewSloppySlow(MacroAssembler* masm) { |
// sp[4] : receiver displacement |
// sp[8] : function |
- CHECK(!has_new_target()); |
- |
// Check if the calling frame is an arguments adaptor frame. |
Label runtime; |
__ lw(a3, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
@@ -1716,8 +1713,6 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
// t2 : allocated object (tagged) |
// t5 : mapped parameter count (tagged) |
- CHECK(!has_new_target()); |
- |
__ lw(a1, MemOperand(sp, 0 * kPointerSize)); |
// a1 = parameter count (tagged) |
@@ -1975,13 +1970,6 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
// Patch the arguments.length and the parameters pointer. |
__ bind(&adaptor_frame); |
__ lw(a1, MemOperand(a2, ArgumentsAdaptorFrameConstants::kLengthOffset)); |
- if (has_new_target()) { |
- Label skip_decrement; |
- __ Branch(&skip_decrement, eq, a1, Operand(Smi::FromInt(0))); |
- // Subtract 1 from smi-tagged arguments count. |
- __ Subu(a1, a1, Operand(2)); |
- __ bind(&skip_decrement); |
- } |
__ sw(a1, MemOperand(sp, 0)); |
__ sll(at, a1, kPointerSizeLog2 - kSmiTagSize); |
__ Addu(a3, a2, Operand(at)); |