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

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

Issue 1258213002: [stubs] Use a single slot for context globals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/contexts.cc » ('j') | no next file with comments »
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 7ccb8aa320d18044f9bdf1ab77f9d37f371f9eed..a9a767817515558621ffdf381352033aaf5a367d 100644
--- a/src/compiler/ast-graph-builder.cc
+++ b/src/compiler/ast-graph-builder.cc
@@ -3334,7 +3334,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) {
@@ -3485,7 +3484,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/contexts.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698