Index: src/arm64/builtins-arm64.cc |
diff --git a/src/arm64/builtins-arm64.cc b/src/arm64/builtins-arm64.cc |
index 11f66a4ef46caa9f2607a40e693c082b14810c8d..b002cc7352886af489b569a41184b42819f31d09 100644 |
--- a/src/arm64/builtins-arm64.cc |
+++ b/src/arm64/builtins-arm64.cc |
@@ -2610,30 +2610,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); |