Index: src/mips64/code-stubs-mips64.cc |
diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc |
index 8c539b40f829d3a9d564b38e3c47b5029d675082..b358b95c328cca8a1499349ac225da4aa86d6d76 100644 |
--- a/src/mips64/code-stubs-mips64.cc |
+++ b/src/mips64/code-stubs-mips64.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; |
__ ld(a3, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
@@ -1716,8 +1713,6 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
// a6 : allocated object (tagged) |
// t1 : mapped parameter count (tagged) |
- CHECK(!has_new_target()); |
- |
__ ld(a1, MemOperand(sp, 0 * kPointerSize)); |
// a1 = parameter count (tagged) |
@@ -1974,15 +1969,6 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
// Patch the arguments.length and the parameters pointer. |
__ bind(&adaptor_frame); |
__ ld(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. |
- __ SmiUntag(a1); |
- __ Daddu(a1, a1, Operand(-1)); |
- __ SmiTag(a1); |
- __ bind(&skip_decrement); |
- } |
__ sd(a1, MemOperand(sp, 0)); |
__ SmiScale(at, a1, kPointerSizeLog2); |