| Index: src/hydrogen.cc
|
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc
|
| index f652b313ca9765f93e3db44157c7f323be9483e2..2689e42d5c1d89e38bb3f698b6503be70e5bc965 100644
|
| --- a/src/hydrogen.cc
|
| +++ b/src/hydrogen.cc
|
| @@ -5564,7 +5564,6 @@ void HOptimizedGraphBuilder::VisitVariableProxy(VariableProxy* expr) {
|
| } else if (variable->IsGlobalSlot()) {
|
| DCHECK(variable->index() > 0);
|
| DCHECK(variable->IsStaticGlobalObjectProperty());
|
| - // Each var occupies two slots in the context: for reads and writes.
|
| int slot_index = variable->index();
|
| int depth = scope()->ContextChainLength(variable->scope());
|
|
|
| @@ -6796,8 +6795,7 @@ void HOptimizedGraphBuilder::HandleGlobalVariableAssignment(
|
| } else if (var->IsGlobalSlot()) {
|
| DCHECK(var->index() > 0);
|
| DCHECK(var->IsStaticGlobalObjectProperty());
|
| - // Each var occupies two slots in the context: for reads and writes.
|
| - int slot_index = var->index() + 1;
|
| + int slot_index = var->index();
|
| int depth = scope()->ContextChainLength(var->scope());
|
|
|
| HStoreGlobalViaContext* instr = Add<HStoreGlobalViaContext>(
|
|
|