| Index: src/arm64/builtins-arm64.cc
|
| diff --git a/src/arm64/builtins-arm64.cc b/src/arm64/builtins-arm64.cc
|
| index acd65103ccef288142b1704f5b993fd0ce666696..1e37a9ccc21cab1f9832fe0648b2d605cf82d347 100644
|
| --- a/src/arm64/builtins-arm64.cc
|
| +++ b/src/arm64/builtins-arm64.cc
|
| @@ -2554,30 +2554,6 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) {
|
| Register copy_to = x12;
|
| Register scratch1 = x13, scratch2 = x14;
|
|
|
| - // If the function is strong we need to throw an error.
|
| - Label no_strong_error;
|
| - __ Ldr(scratch1,
|
| - FieldMemOperand(function, JSFunction::kSharedFunctionInfoOffset));
|
| - __ Ldr(scratch2.W(),
|
| - FieldMemOperand(scratch1, SharedFunctionInfo::kCompilerHintsOffset));
|
| - __ TestAndBranchIfAllClear(scratch2.W(),
|
| - (1 << SharedFunctionInfo::kStrongModeFunction),
|
| - &no_strong_error);
|
| -
|
| - // What we really care about is the required number of arguments.
|
| - DCHECK_EQ(kPointerSize, kInt64Size);
|
| - __ Ldr(scratch2.W(),
|
| - FieldMemOperand(scratch1, SharedFunctionInfo::kLengthOffset));
|
| - __ Cmp(argc_actual, Operand(scratch2, LSR, 1));
|
| - __ B(ge, &no_strong_error);
|
| -
|
| - {
|
| - FrameScope frame(masm, StackFrame::MANUAL);
|
| - EnterArgumentsAdaptorFrame(masm);
|
| - __ CallRuntime(Runtime::kThrowStrongModeTooFewArguments);
|
| - }
|
| -
|
| - __ Bind(&no_strong_error);
|
| EnterArgumentsAdaptorFrame(masm);
|
| ArgumentAdaptorStackCheck(masm, &stack_overflow);
|
|
|
|
|