Index: src/crankshaft/x87/lithium-x87.cc |
diff --git a/src/crankshaft/x87/lithium-x87.cc b/src/crankshaft/x87/lithium-x87.cc |
index a572ecb90161e033326f4dc44f8142e11c7c8afb..1421a843587d911c2066b45121919b8353ce3859 100644 |
--- a/src/crankshaft/x87/lithium-x87.cc |
+++ b/src/crankshaft/x87/lithium-x87.cc |
@@ -924,7 +924,7 @@ void LChunkBuilder::AddInstruction(LInstruction* instr, |
} |
chunk_->AddInstruction(instr, current_block_); |
- if (instr->IsCall() || instr->IsPrologue()) { |
+ if (instr->IsCall()) { |
HValue* hydrogen_value_for_lazy_bailout = hydrogen_val; |
if (hydrogen_val->HasObservableSideEffects()) { |
HSimulate* sim = HSimulate::cast(hydrogen_val->next()); |
@@ -939,7 +939,11 @@ void LChunkBuilder::AddInstruction(LInstruction* instr, |
LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
- return new (zone()) LPrologue(); |
+ LInstruction* result = new (zone()) LPrologue(); |
+ if (info_->num_heap_slots() > 0) { |
+ result = MarkAsCall(result, instr); |
+ } |
+ return result; |
} |