Index: src/crankshaft/arm64/lithium-arm64.cc |
diff --git a/src/crankshaft/arm64/lithium-arm64.cc b/src/crankshaft/arm64/lithium-arm64.cc |
index 8067a6ae28d4ff173fdb101849f15c05bdfb41a4..79f70c8ed2a5aa3b3f2d14257111ea334ec10415 100644 |
--- a/src/crankshaft/arm64/lithium-arm64.cc |
+++ b/src/crankshaft/arm64/lithium-arm64.cc |
@@ -726,7 +726,7 @@ LInstruction* LChunkBuilder::AssignEnvironment(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; |