Index: src/crankshaft/hydrogen.cc |
diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc |
index 95f2d7a153e885a20b6c954c565df4fc5dc792d5..cc8dc59042e431de4087afb6e50b924a7f941963 100644 |
--- a/src/crankshaft/hydrogen.cc |
+++ b/src/crankshaft/hydrogen.cc |
@@ -8399,7 +8399,7 @@ bool HOptimizedGraphBuilder::TryInline(Handle<JSFunction> target, |
return false; |
} |
- if (target_info.scope()->num_heap_slots() > 0) { |
+ if (target_info.scope()->NeedsContext()) { |
TraceInline(target, caller, "target has context-allocated variables"); |
return false; |
} |