| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index 0476aed3144084a7d309289bc55fbe261fca618d..746b8409c470871731b564621c1305c157b54f57 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -3330,7 +3330,6 @@ Node* AstGraphBuilder::BuildVariableLoad(Variable* variable,
|
| int slot_index = -1;
|
| if (variable->index() > 0) {
|
| DCHECK(variable->IsStaticGlobalObjectProperty());
|
| - // Each var occupies two slots in the context: for reads and writes.
|
| slot_index = variable->index();
|
| int depth = current_scope()->ContextChainLength(variable->scope());
|
| if (depth > 0) {
|
| @@ -3481,7 +3480,6 @@ Node* AstGraphBuilder::BuildVariableAssignment(
|
| int slot_index = -1;
|
| if (variable->index() > 0) {
|
| DCHECK(variable->IsStaticGlobalObjectProperty());
|
| - // Each var occupies two slots in the context: for reads and writes.
|
| slot_index = variable->index();
|
| int depth = current_scope()->ContextChainLength(variable->scope());
|
| if (depth > 0) {
|
|
|