Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index d42c0e4416e426407a60c866dedfb68d974f53c2..819a30587a791c03a80983815f44965d8584f0ad 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -738,7 +738,6 @@ |
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())); |
@@ -805,8 +804,6 @@ |
// 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)); |
@@ -834,8 +831,6 @@ |
// 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 |
@@ -1076,15 +1071,9 @@ |
// Patch the arguments.length and the parameters pointer. |
__ bind(&adaptor_frame); |
__ mov(ecx, Operand(edx, ArgumentsAdaptorFrameConstants::kLengthOffset)); |
- |
- if (has_new_target()) { |
- // Subtract 1 from smi-tagged arguments count. |
- __ sub(ecx, Immediate(2)); |
- } |
- |
+ __ mov(Operand(esp, 1 * kPointerSize), ecx); |
__ lea(edx, Operand(edx, ecx, times_2, |
StandardFrameConstants::kCallerSPOffset)); |
- __ mov(Operand(esp, 1 * kPointerSize), ecx); |
__ mov(Operand(esp, 2 * kPointerSize), edx); |
// Try the new space allocation. Start out with computing the size of |
@@ -2160,12 +2149,8 @@ |
__ AssertUndefinedOrAllocationSite(ebx); |
} |
- if (IsSuperConstructorCall()) { |
- __ mov(edx, Operand(esp, eax, times_pointer_size, 2 * kPointerSize)); |
- } else { |
- // Pass original constructor to construct stub. |
- __ mov(edx, edi); |
- } |
+ // Pass original constructor to construct stub. |
+ __ mov(edx, edi); |
// Jump to the function-specific construct stub. |
Register jmp_reg = ecx; |