| Index: src/crankshaft/x64/lithium-x64.cc
|
| diff --git a/src/crankshaft/x64/lithium-x64.cc b/src/crankshaft/x64/lithium-x64.cc
|
| index b337bde59c7c8541d19aaa8bef21480bd60aa980..f85c6a8bcfc8fffb49a359d6cb3cecc79f1122eb 100644
|
| --- a/src/crankshaft/x64/lithium-x64.cc
|
| +++ b/src/crankshaft/x64/lithium-x64.cc
|
| @@ -900,7 +900,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());
|
| @@ -920,7 +920,11 @@ LInstruction* LChunkBuilder::DoGoto(HGoto* 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;
|
| }
|
|
|
|
|
|
|