Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index cab0000f2c9540835e736547331b46ced29c1d17..05c76928f6322e5abcab8e07191924571aebf8ba 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -414,7 +414,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())); |
@@ -481,8 +480,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)); |
@@ -511,8 +508,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. |
@@ -753,18 +748,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); |