Index: src/compiler/mips64/code-generator-mips64.cc |
diff --git a/src/compiler/mips64/code-generator-mips64.cc b/src/compiler/mips64/code-generator-mips64.cc |
index 373a1a6abce6efacd5e6a6f00d62f25a4723aa65..880c6945ce2a4290cbccd46b8ab53c2365ef4360 100644 |
--- a/src/compiler/mips64/code-generator-mips64.cc |
+++ b/src/compiler/mips64/code-generator-mips64.cc |
@@ -1831,13 +1831,15 @@ void CodeGenerator::AssembleDeoptimizerCall( |
void CodeGenerator::AssemblePrologue() { |
CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
- 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); |
} |