Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 7435ccd8aa12f7bce975dbd2423ebc4edec4138a..1d53d719a99b0fc1a7eb539ef4d4e16f19e65543 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -733,7 +733,6 @@ void LoadIndexedStringStub::Generate(MacroAssembler* masm) { |
void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { |
- CHECK(!has_new_target()); |
// The key is in edx and the parameter count is in eax. |
DCHECK(edx.is(ArgumentsAccessReadDescriptor::index())); |
DCHECK(eax.is(ArgumentsAccessReadDescriptor::parameter_count())); |
@@ -800,8 +799,6 @@ void ArgumentsAccessStub::GenerateNewSloppySlow(MacroAssembler* masm) { |
// esp[8] : receiver displacement |
// esp[12] : function |
- CHECK(!has_new_target()); |
- |
// Check if the calling frame is an arguments adaptor frame. |
Label runtime; |
__ mov(edx, Operand(ebp, StandardFrameConstants::kCallerFPOffset)); |
@@ -830,8 +827,6 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) { |
// ebx = parameter count (tagged) |
__ mov(ebx, Operand(esp, 1 * kPointerSize)); |
- CHECK(!has_new_target()); |
- |
// Check if the calling frame is an arguments adaptor frame. |
// TODO(rossberg): Factor out some of the bits that are shared with the other |
// Generate* functions. |
@@ -1072,18 +1067,6 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
__ bind(&adaptor_frame); |
__ mov(ecx, Operand(edx, ArgumentsAdaptorFrameConstants::kLengthOffset)); |
- if (has_new_target()) { |
- // If the constructor was [[Call]]ed, the call will not push a new.target |
- // onto the stack. In that case the arguments array we construct is bogus, |
- // bu we do not care as the constructor throws immediately. |
- __ cmp(ecx, Immediate(Smi::FromInt(0))); |
- Label skip_decrement; |
- __ j(equal, &skip_decrement); |
- // Subtract 1 from smi-tagged arguments count. |
- __ sub(ecx, Immediate(2)); |
- __ bind(&skip_decrement); |
- } |
- |
__ lea(edx, Operand(edx, ecx, times_2, |
StandardFrameConstants::kCallerSPOffset)); |
__ mov(Operand(esp, 1 * kPointerSize), ecx); |