Index: src/crankshaft/s390/lithium-codegen-s390.cc |
diff --git a/src/crankshaft/s390/lithium-codegen-s390.cc b/src/crankshaft/s390/lithium-codegen-s390.cc |
index 7bb718df7e0d783add4312ba854059408d251bd9..b401005cbe9eb495939ee6320eb54a945b1cf866 100644 |
--- a/src/crankshaft/s390/lithium-codegen-s390.cc |
+++ b/src/crankshaft/s390/lithium-codegen-s390.cc |
@@ -148,7 +148,7 @@ void LCodeGen::DoPrologue(LPrologue* instr) { |
Comment(";;; Prologue begin"); |
// Possibly allocate a local context. |
- if (info()->scope()->num_heap_slots() > 0) { |
+ if (info()->scope()->NeedsContext()) { |
Comment(";;; Allocate local context"); |
bool need_write_barrier = true; |
// Argument to NewContext is the function, which is in r3. |