Index: src/crankshaft/ia32/lithium-ia32.cc |
diff --git a/src/crankshaft/ia32/lithium-ia32.cc b/src/crankshaft/ia32/lithium-ia32.cc |
index 0c333822c776099b05eac79b2f5ded6768b80832..c827ec5ae930b7ca7b12f11f6c5ea0e07673487f 100644 |
--- a/src/crankshaft/ia32/lithium-ia32.cc |
+++ b/src/crankshaft/ia32/lithium-ia32.cc |
@@ -908,7 +908,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()); |
@@ -923,7 +923,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; |
} |