Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index e55069a604947287589d3e71e3df57ed5183e7da..35f835bbd4149641080158762526611ab22494a8 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -1488,7 +1488,6 @@ |
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 = |
@@ -1545,8 +1544,6 @@ |
// sp[0] : number of parameters |
// sp[4] : receiver displacement |
// sp[8] : function |
- |
- CHECK(!has_new_target()); |
// Check if the calling frame is an arguments adaptor frame. |
Label runtime; |
@@ -1575,8 +1572,6 @@ |
// Registers used over whole function: |
// r6 : allocated object (tagged) |
// r9 : mapped parameter count (tagged) |
- |
- CHECK(!has_new_target()); |
__ ldr(r1, MemOperand(sp, 0 * kPointerSize)); |
// r1 = parameter count (tagged) |
@@ -1818,10 +1813,6 @@ |
// Patch the arguments.length and the parameters pointer. |
__ bind(&adaptor_frame); |
__ ldr(r1, MemOperand(r2, ArgumentsAdaptorFrameConstants::kLengthOffset)); |
- if (has_new_target()) { |
- // Subtract 1 from smi-tagged arguments count. |
- __ sub(r1, r1, Operand(2)); |
- } |
__ str(r1, MemOperand(sp, 0)); |
__ add(r3, r2, Operand::PointerOffsetFromSmiKey(r1)); |
__ add(r3, r3, Operand(StandardFrameConstants::kCallerSPOffset)); |
@@ -2573,13 +2564,7 @@ |
} |
// Pass function as original constructor. |
- if (IsSuperConstructorCall()) { |
- __ mov(r4, Operand(1 * kPointerSize)); |
- __ add(r4, r4, Operand(r0, LSL, kPointerSizeLog2)); |
- __ ldr(r3, MemOperand(sp, r4)); |
- } else { |
- __ mov(r3, r1); |
- } |
+ __ mov(r3, r1); |
// Jump to the function-specific construct stub. |
Register jmp_reg = r4; |