Index: src/compiler/x87/code-generator-x87.cc |
diff --git a/src/compiler/x87/code-generator-x87.cc b/src/compiler/x87/code-generator-x87.cc |
index 82a2d14c51d281320dd16db048051e988c0b9fd1..272218b76ba36c4c974e5f52782f86d5c02069e6 100644 |
--- a/src/compiler/x87/code-generator-x87.cc |
+++ b/src/compiler/x87/code-generator-x87.cc |
@@ -2006,16 +2006,15 @@ void CodeGenerator::AssembleDeoptimizerCall( |
void CodeGenerator::AssemblePrologue() { |
CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
- if (descriptor->IsCFunctionCall()) { |
- // Assemble a prologue similar the to cdecl calling convention. |
- __ push(ebp); |
- __ mov(ebp, esp); |
- } else if (descriptor->IsJSFunctionCall()) { |
- // TODO(turbofan): this prologue is redundant with OSR, but needed for |
- // code aging. |
- __ Prologue(this->info()->GeneratePreagedPrologue()); |
- } else if (frame()->needs_frame()) { |
- __ StubPrologue(); |
+ if (frame()->needs_frame()) { |
+ if (descriptor->IsCFunctionCall()) { |
+ __ push(ebp); |
+ __ mov(ebp, esp); |
+ } else if (descriptor->IsJSFunctionCall()) { |
+ __ Prologue(this->info()->GeneratePreagedPrologue()); |
+ } else { |
+ __ StubPrologue(info()->GetOutputStackFrameType()); |
+ } |
} else { |
frame()->SetElidedFrameSizeInSlots(kPCOnStackSize / kPointerSize); |
} |