Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 14046b410d476ecf2173e928a960a51068901317..156029cffb95b56a74edc110c24d049dfa4e3e1a 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -5318,7 +5318,8 @@ void HOptimizedGraphBuilder::VisitVariableProxy(VariableProxy* expr) { |
Handle<GlobalObject> global(current_info()->global_object()); |
- if (FLAG_harmony_scoping) { |
+ // Lookup in script contexts. |
+ { |
Handle<ScriptContextTable> script_contexts( |
global->native_context()->script_context_table()); |
ScriptContextTable::LookupResult lookup; |
@@ -6478,7 +6479,8 @@ void HOptimizedGraphBuilder::HandleGlobalVariableAssignment( |
BailoutId ast_id) { |
Handle<GlobalObject> global(current_info()->global_object()); |
- if (FLAG_harmony_scoping) { |
+ // Lookup in script contexts. |
+ { |
Handle<ScriptContextTable> script_contexts( |
global->native_context()->script_context_table()); |
ScriptContextTable::LookupResult lookup; |