| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index 96b513c8b065e14b13ab504e113d8fd6ab9387b0..35f4a129c7ad0f7b15c5b25a0e6415ced26d90bc 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -1344,8 +1344,11 @@ void BytecodeGenerator::VisitVariableLoad(Variable* variable,
|
| // let variables.
|
| break;
|
| }
|
| - case VariableLocation::LOOKUP:
|
| - UNIMPLEMENTED();
|
| + case VariableLocation::LOOKUP: {
|
| + builder()->LoadLookupSlot(variable->name(), typeof_mode);
|
| + execution_result()->SetResultInAccumulator();
|
| + break;
|
| + }
|
| }
|
| }
|
|
|
| @@ -1421,8 +1424,10 @@ void BytecodeGenerator::VisitVariableAssignment(Variable* variable,
|
| builder()->StoreContextSlot(context_reg, variable->index());
|
| break;
|
| }
|
| - case VariableLocation::LOOKUP:
|
| - UNIMPLEMENTED();
|
| + case VariableLocation::LOOKUP: {
|
| + builder()->StoreLookupSlot(variable->name(), language_mode());
|
| + break;
|
| + }
|
| }
|
| }
|
|
|
|
|