Index: src/compiler/mips/code-generator-mips.cc |
diff --git a/src/compiler/mips/code-generator-mips.cc b/src/compiler/mips/code-generator-mips.cc |
index cdd7e3486672c63a572e3972ed7b2a6fbccc0aa4..88510a7728c8dd4ea2cf61632358d7e0303f96e7 100644 |
--- a/src/compiler/mips/code-generator-mips.cc |
+++ b/src/compiler/mips/code-generator-mips.cc |
@@ -1525,13 +1525,15 @@ void CodeGenerator::AssembleDeoptimizerCall( |
void CodeGenerator::AssemblePrologue() { |
CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
int stack_shrink_slots = frame()->GetSpillSlotCount(); |
- if (descriptor->IsCFunctionCall()) { |
- __ Push(ra, fp); |
- __ mov(fp, sp); |
- } else if (descriptor->IsJSFunctionCall()) { |
- __ Prologue(this->info()->GeneratePreagedPrologue()); |
- } else if (frame()->needs_frame()) { |
- __ StubPrologue(); |
+ if (frame()->needs_frame()) { |
+ if (descriptor->IsCFunctionCall()) { |
+ __ Push(ra, fp); |
+ __ mov(fp, sp); |
+ } else if (descriptor->IsJSFunctionCall()) { |
+ __ Prologue(this->info()->GeneratePreagedPrologue()); |
+ } else { |
+ __ StubPrologue(info()->GetOutputStackFrameType()); |
+ } |
} else { |
frame()->SetElidedFrameSizeInSlots(0); |
} |