Index: src/crankshaft/s390/lithium-s390.cc |
diff --git a/src/crankshaft/s390/lithium-s390.cc b/src/crankshaft/s390/lithium-s390.cc |
index 3048e4c8b5b6519529e39271b2f23aff0520a873..afc1ce82b763387c0f78b20e5e9cc79c670fb35d 100644 |
--- a/src/crankshaft/s390/lithium-s390.cc |
+++ b/src/crankshaft/s390/lithium-s390.cc |
@@ -815,7 +815,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; |