Index: src/mips/builtins-mips.cc |
diff --git a/src/mips/builtins-mips.cc b/src/mips/builtins-mips.cc |
index 3a56fe72c8720b1e849b134c8a89c6885fe4260d..fdc67d8c33df0de49827bd312f869823c70cfc58 100644 |
--- a/src/mips/builtins-mips.cc |
+++ b/src/mips/builtins-mips.cc |
@@ -2500,27 +2500,6 @@ void Builtins::Generate_ArgumentsAdaptorTrampoline(MacroAssembler* masm) { |
{ // Too few parameters: Actual < expected. |
__ bind(&too_few); |
- |
- // If the function is strong we need to throw an error. |
- Label no_strong_error; |
- __ lw(t1, FieldMemOperand(a1, JSFunction::kSharedFunctionInfoOffset)); |
- __ lw(t2, FieldMemOperand(t1, SharedFunctionInfo::kCompilerHintsOffset)); |
- __ And(t3, t2, Operand(1 << (SharedFunctionInfo::kStrongModeFunction + |
- kSmiTagSize))); |
- __ Branch(&no_strong_error, eq, t3, Operand(zero_reg)); |
- |
- // What we really care about is the required number of arguments. |
- __ lw(t2, FieldMemOperand(t1, SharedFunctionInfo::kLengthOffset)); |
- __ SmiUntag(t2); |
- __ Branch(&no_strong_error, ge, a0, Operand(t2)); |
- |
- { |
- FrameScope frame(masm, StackFrame::MANUAL); |
- EnterArgumentsAdaptorFrame(masm); |
- __ CallRuntime(Runtime::kThrowStrongModeTooFewArguments); |
- } |
- |
- __ bind(&no_strong_error); |
EnterArgumentsAdaptorFrame(masm); |
ArgumentAdaptorStackCheck(masm, &stack_overflow); |