| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index 48a2a885ed885fb2e2ec9e8ced9f63f2bdbb4def..7f4560ead08534a389feac20fd8ebd57bd0b2858 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -539,7 +539,6 @@ void FunctionPrototypeStub::Generate(MacroAssembler* masm) {
|
|
|
|
|
| void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) {
|
| - CHECK(!has_new_target());
|
| // The key is in rdx and the parameter count is in rax.
|
| DCHECK(rdx.is(ArgumentsAccessReadDescriptor::index()));
|
| DCHECK(rax.is(ArgumentsAccessReadDescriptor::parameter_count()));
|
| @@ -606,9 +605,6 @@ void ArgumentsAccessStub::GenerateNewSloppyFast(MacroAssembler* masm) {
|
| // Registers used over the whole function:
|
| // rbx: the mapped parameter count (untagged)
|
| // rax: the allocated object (tagged).
|
| -
|
| - CHECK(!has_new_target());
|
| -
|
| Factory* factory = isolate()->factory();
|
|
|
| StackArgumentsAccessor args(rsp, 3, ARGUMENTS_DONT_CONTAIN_RECEIVER);
|
| @@ -822,7 +818,6 @@ void ArgumentsAccessStub::GenerateNewSloppySlow(MacroAssembler* masm) {
|
| // rsp[8] : number of parameters
|
| // rsp[16] : receiver displacement
|
| // rsp[24] : function
|
| - CHECK(!has_new_target());
|
|
|
| // Check if the calling frame is an arguments adaptor frame.
|
| Label runtime;
|
| @@ -960,19 +955,6 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) {
|
| __ bind(&adaptor_frame);
|
| __ movp(rcx, Operand(rdx, 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(rcx, Smi::FromInt(0));
|
| - Label skip_decrement;
|
| - __ j(equal, &skip_decrement);
|
| - // Subtract 1 from smi-tagged arguments count.
|
| - __ SmiToInteger32(rcx, rcx);
|
| - __ decl(rcx);
|
| - __ Integer32ToSmi(rcx, rcx);
|
| - __ bind(&skip_decrement);
|
| - }
|
| __ movp(args.GetArgumentOperand(2), rcx);
|
| __ SmiToInteger64(rcx, rcx);
|
| __ leap(rdx, Operand(rdx, rcx, times_pointer_size,
|
|
|