| Index: src/crankshaft/arm/lithium-arm.cc
|
| diff --git a/src/crankshaft/arm/lithium-arm.cc b/src/crankshaft/arm/lithium-arm.cc
|
| index 27f01925d67854f3d999a7166679bec3ccd4bb6f..7169717844ffbdc102fcf6c3500d0f0721c9ff3e 100644
|
| --- a/src/crankshaft/arm/lithium-arm.cc
|
| +++ b/src/crankshaft/arm/lithium-arm.cc
|
| @@ -876,7 +876,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());
|
| @@ -891,7 +891,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;
|
| }
|
|
|
|
|
|
|