Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 43ab0e3abe0e0103ac6fde664fcd89138360f67c..3820f4fb5a55a1fc9f6f3415858dee7ba181458a 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -1977,6 +1977,12 @@ void BytecodeGenerator::VisitVariableLoad(Variable* variable, |
BuildHoleCheckForVariableLoad(variable); |
break; |
} |
+ case DYNAMIC_GLOBAL: { |
+ int depth = scope()->ContextChainLengthUntilOutermostSloppyEval(); |
+ builder()->LoadLookupGlobalSlot(variable->name(), typeof_mode, |
+ feedback_index(slot), depth); |
+ break; |
+ } |
default: |
builder()->LoadLookupSlot(variable->name(), typeof_mode); |
} |