Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index 5bd40084833cd1a1de41042d0ac52f121621761c..123948465f9fa929a752c9df144c7c585b5b68e7 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -1844,31 +1844,6 @@ void ArgumentsAccessStub::GenerateNewStrict(MacroAssembler* masm) { |
} |
-void RestParamAccessStub::GenerateNew(MacroAssembler* masm) { |
- // Stack layout on entry. |
- // sp[0] : language mode |
- // sp[4] : index of rest parameter |
- // sp[8] : number of parameters |
- // sp[12] : receiver displacement |
- |
- Label runtime; |
- __ ldr(r2, MemOperand(fp, StandardFrameConstants::kCallerFPOffset)); |
- __ ldr(r3, MemOperand(r2, StandardFrameConstants::kContextOffset)); |
- __ cmp(r3, Operand(Smi::FromInt(StackFrame::ARGUMENTS_ADAPTOR))); |
- __ b(ne, &runtime); |
- |
- // Patch the arguments.length and the parameters pointer. |
- __ ldr(r1, MemOperand(r2, ArgumentsAdaptorFrameConstants::kLengthOffset)); |
- __ str(r1, MemOperand(sp, 2 * kPointerSize)); |
- __ add(r3, r2, Operand::PointerOffsetFromSmiKey(r1)); |
- __ add(r3, r3, Operand(StandardFrameConstants::kCallerSPOffset)); |
- __ str(r3, MemOperand(sp, 3 * kPointerSize)); |
- |
- __ bind(&runtime); |
- __ TailCallRuntime(Runtime::kNewRestParam, 4, 1); |
-} |
- |
- |
void RegExpExecStub::Generate(MacroAssembler* masm) { |
// Just jump directly to runtime if native RegExp is not selected at compile |
// time or if regexp entry in generated code is turned off runtime switch or |