diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc index dfee3583c8..ac0d2e2fe8 100644 --- a/src/compiler/mips/code-generator-mips.cc +++ b/src/compiler/mips/code-generator-mips.cc @@ -398,8 +398,7 @@ void CodeGenerator::AssembleDeconstructActivationRecord() { CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); int stack_slots = frame()->GetSpillSlotCount(); if (descriptor->IsJSFunctionCall() || stack_slots > 0) { - __ mov(sp, fp); - __ Pop(ra, fp); + __ LeaveFrame(StackFrame::MANUAL); int pop_count = descriptor->IsJSFunctionCall() ? static_cast(descriptor->JSParameterCount()) : 0; diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc index 63c7957084..6aa735d244 100644 --- a/src/compiler/mips64/code-generator-mips64.cc +++ b/src/compiler/mips64/code-generator-mips64.cc @@ -398,8 +398,7 @@ void CodeGenerator::AssembleDeconstructActivationRecord() { CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); int stack_slots = frame()->GetSpillSlotCount(); if (descriptor->IsJSFunctionCall() || stack_slots > 0) { - __ mov(sp, fp); - __ Pop(ra, fp); + __ LeaveFrame(StackFrame::MANUAL); int pop_count = descriptor->IsJSFunctionCall() ? static_cast(descriptor->JSParameterCount()) : 0;