| Index: src/ia32/builtins-ia32.cc
|
| diff --git a/src/ia32/builtins-ia32.cc b/src/ia32/builtins-ia32.cc
|
| index a8a03c4c3dc384403fa7e9d5a491b2b0d7028f05..89520ccee8baba34685a9ae0b95dde3c8f6c2fd3 100644
|
| --- a/src/ia32/builtins-ia32.cc
|
| +++ b/src/ia32/builtins-ia32.cc
|
| @@ -2412,27 +2412,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;
|
| - __ mov(ecx, FieldOperand(edi, JSFunction::kSharedFunctionInfoOffset));
|
| - __ test_b(FieldOperand(ecx, SharedFunctionInfo::kStrongModeByteOffset),
|
| - 1 << SharedFunctionInfo::kStrongModeBitWithinByte);
|
| - __ j(equal, &no_strong_error, Label::kNear);
|
| -
|
| - // What we really care about is the required number of arguments.
|
| - __ mov(ecx, FieldOperand(ecx, SharedFunctionInfo::kLengthOffset));
|
| - __ SmiUntag(ecx);
|
| - __ cmp(eax, ecx);
|
| - __ j(greater_equal, &no_strong_error, Label::kNear);
|
| -
|
| - {
|
| - FrameScope frame(masm, StackFrame::MANUAL);
|
| - EnterArgumentsAdaptorFrame(masm);
|
| - __ CallRuntime(Runtime::kThrowStrongModeTooFewArguments);
|
| - }
|
| -
|
| - __ bind(&no_strong_error);
|
| EnterArgumentsAdaptorFrame(masm);
|
| ArgumentsAdaptorStackCheck(masm, &stack_overflow);
|
|
|
|
|