| Index: src/compiler/arm/code-generator-arm.cc
|
| diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc
|
| index a7c227facac5ef87fb95c9e81a36330554987ffd..cee0649fec553f25839b5b4730d8d7d18fc914bf 100644
|
| --- a/src/compiler/arm/code-generator-arm.cc
|
| +++ b/src/compiler/arm/code-generator-arm.cc
|
| @@ -665,12 +665,10 @@ void CodeGenerator::AssembleReturn() {
|
| __ ldm(ia_w, sp, saves);
|
| }
|
| }
|
| - __ mov(sp, fp);
|
| - __ ldm(ia_w, sp, fp.bit() | lr.bit());
|
| + __ LeaveFrame(StackFrame::MANUAL);
|
| __ Ret();
|
| } else {
|
| - __ mov(sp, fp);
|
| - __ ldm(ia_w, sp, fp.bit() | lr.bit());
|
| + __ LeaveFrame(StackFrame::MANUAL);
|
| int pop_count =
|
| descriptor->IsJSFunctionCall() ? descriptor->ParameterCount() : 0;
|
| __ Drop(pop_count);
|
|
|