Index: src/crankshaft/s390/lithium-s390.cc |
diff --git a/src/crankshaft/s390/lithium-s390.cc b/src/crankshaft/s390/lithium-s390.cc |
index e219c404865e95b98b6235ee53155ff60b3fb264..efe0752d87f772576a91300bce3c2b802556c9d7 100644 |
--- a/src/crankshaft/s390/lithium-s390.cc |
+++ b/src/crankshaft/s390/lithium-s390.cc |
@@ -814,7 +814,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()); |
@@ -828,7 +828,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; |
} |
LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { |