Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 8c59ce86c9fe11f4c8ed1cfb76a8ed69cfcd3f2f..a51cfc0fe849f41ec224bec01539a5c01185f5f6 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -4688,7 +4688,7 @@ void HOptimizedGraphBuilder::VisitBlock(Block* stmt) { |
{ BreakAndContinueScope push(&break_info, this); |
if (scope != NULL) { |
- if (scope->ContextLocalCount() > 0) { |
+ if (scope->NeedsContext()) { |
// Load the function object. |
Scope* declaration_scope = scope->DeclarationScope(); |
HInstruction* function; |