Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Unified Diff: src/compiler/ast-graph-builder.cc

Issue 1250413002: [stubs] Further optimize Load/StoreGlobalViaContext stubs. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: REBASE Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/compiler/js-generic-lowering.cc » ('j') | src/flag-definitions.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « no previous file | src/compiler/js-generic-lowering.cc » ('j') | src/flag-definitions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698