Index: src/crankshaft/mips64/lithium-mips64.cc |
diff --git a/src/crankshaft/mips64/lithium-mips64.cc b/src/crankshaft/mips64/lithium-mips64.cc |
index 922f12ada85f39db4129b7d5a27dc48fb95513ad..fe1f85c31559321d1439a60728e44bed74c1f7fa 100644 |
--- a/src/crankshaft/mips64/lithium-mips64.cc |
+++ b/src/crankshaft/mips64/lithium-mips64.cc |
@@ -887,7 +887,7 @@ void LChunkBuilder::AddInstruction(LInstruction* instr, |
LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) { |
LInstruction* result = new (zone()) LPrologue(); |
- if (info_->scope()->num_heap_slots() > 0) { |
+ if (info_->scope()->NeedsContext()) { |
result = MarkAsCall(result, instr); |
} |
return result; |