| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index 04e42e6609621a19c123ba9b807e9f1e4bebab06..0c3a7d6fde22f63bd254e4e7ea6577f97b84b002 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -1591,59 +1591,6 @@ void FunctionPrototypeStub::Generate(MacroAssembler* masm) {
|
| }
|
|
|
|
|
| -void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) {
|
| - // The displacement is the offset of the last parameter (if any)
|
| - // relative to the frame pointer.
|
| - const int kDisplacement =
|
| - StandardFrameConstants::kCallerSPOffset - kPointerSize;
|
| - DCHECK(a1.is(ArgumentsAccessReadDescriptor::index()));
|
| - DCHECK(a0.is(ArgumentsAccessReadDescriptor::parameter_count()));
|
| -
|
| - // Check that the key is a smiGenerateReadElement.
|
| - Label slow;
|
| - __ JumpIfNotSmi(a1, &slow);
|
| -
|
| - // Check if the calling frame is an arguments adaptor frame.
|
| - Label adaptor;
|
| - __ lw(a2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset));
|
| - __ lw(a3, MemOperand(a2, StandardFrameConstants::kContextOffset));
|
| - __ Branch(&adaptor,
|
| - eq,
|
| - a3,
|
| - Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR)));
|
| -
|
| - // Check index (a1) against formal parameters count limit passed in
|
| - // through register a0. Use unsigned comparison to get negative
|
| - // check for free.
|
| - __ Branch(&slow, hs, a1, Operand(a0));
|
| -
|
| - // Read the argument from the stack and return it.
|
| - __ subu(a3, a0, a1);
|
| - __ Lsa(a3, fp, a3, kPointerSizeLog2 - kSmiTagSize);
|
| - __ Ret(USE_DELAY_SLOT);
|
| - __ lw(v0, MemOperand(a3, kDisplacement));
|
| -
|
| - // Arguments adaptor case: Check index (a1) against actual arguments
|
| - // limit found in the arguments adaptor frame. Use unsigned
|
| - // comparison to get negative check for free.
|
| - __ bind(&adaptor);
|
| - __ lw(a0, MemOperand(a2, ArgumentsAdaptorFrameConstants::kLengthOffset));
|
| - __ Branch(&slow, Ugreater_equal, a1, Operand(a0));
|
| -
|
| - // Read the argument from the adaptor frame and return it.
|
| - __ subu(a3, a0, a1);
|
| - __ Lsa(a3, a2, a3, kPointerSizeLog2 - kSmiTagSize);
|
| - __ Ret(USE_DELAY_SLOT);
|
| - __ lw(v0, MemOperand(a3, kDisplacement));
|
| -
|
| - // Slow-case: Handle non-smi or out-of-bounds access to arguments
|
| - // by calling the runtime system.
|
| - __ bind(&slow);
|
| - __ push(a1);
|
| - __ TailCallRuntime(Runtime::kArguments);
|
| -}
|
| -
|
| -
|
| void ArgumentsAccessStub::GenerateNewSloppySlow(MacroAssembler* masm) {
|
| // a1 : function
|
| // a2 : number of parameters (tagged)
|
|
|