Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 9794a416648d418a9474c4e804cd88fdd20c0464..0d139bb6620e9f5751108e7901a77910c70327ff 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -1489,59 +1489,6 @@ void LoadIndexedStringStub::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(r1.is(ArgumentsAccessReadDescriptor::index())); |
- DCHECK(r0.is(ArgumentsAccessReadDescriptor::parameter_count())); |
- |
- // Check that the key is a smi. |
- Label slow; |
- __ JumpIfNotSmi(r1, &slow); |
- |
- // Check if the calling frame is an arguments adaptor frame. |
- Label adaptor; |
- __ ldr(r2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
- __ ldr(r3, MemOperand(r2, StandardFrameConstants::kContextOffset)); |
- __ cmp(r3, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
- __ b(eq, &adaptor); |
- |
- // Check index against formal parameters count limit passed in |
- // through register r0. Use unsigned comparison to get negative |
- // check for free. |
- __ cmp(r1, r0); |
- __ b(hs, &slow); |
- |
- // Read the argument from the stack and return it. |
- __ sub(r3, r0, r1); |
- __ add(r3, fp, Operand::PointerOffsetFromSmiKey(r3)); |
- __ ldr(r0, MemOperand(r3, kDisplacement)); |
- __ Jump(lr); |
- |
- // Arguments adaptor case: Check index against actual arguments |
- // limit found in the arguments adaptor frame. Use unsigned |
- // comparison to get negative check for free. |
- __ bind(&adaptor); |
- __ ldr(r0, MemOperand(r2, ArgumentsAdaptorFrameConstants::kLengthOffset)); |
- __ cmp(r1, r0); |
- __ b(cs, &slow); |
- |
- // Read the argument from the adaptor frame and return it. |
- __ sub(r3, r0, r1); |
- __ add(r3, r2, Operand::PointerOffsetFromSmiKey(r3)); |
- __ ldr(r0, MemOperand(r3, kDisplacement)); |
- __ Jump(lr); |
- |
- // Slow-case: Handle non-smi or out-of-bounds access to arguments |
- // by calling the runtime system. |
- __ bind(&slow); |
- __ push(r1); |
- __ TailCallRuntime(Runtime::kArguments); |
-} |
- |
- |
void ArgumentsAccessStub::GenerateNewSloppySlow(MacroAssembler* masm) { |
// r1 : function |
// r2 : number of parameters (tagged) |