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

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

Issue 896983002: [turbofan] Make ContextScope a proper encapsulation of the current context. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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/ast-graph-builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/ast-graph-builder.h
diff --git a/src/compiler/ast-graph-builder.h b/src/compiler/ast-graph-builder.h
index 4845a66794e65bdd175f45e322f90c64204b9615..a6cd5f6c75fda5237fe82d68c82d0def94ac964c 100644
--- a/src/compiler/ast-graph-builder.h
+++ b/src/compiler/ast-graph-builder.h
@@ -98,9 +98,6 @@ class AstGraphBuilder : public AstVisitor {
// Node representing the control dependency for dead code.
SetOncePointer<Node> dead_control_;
- // Node representing the current context within the function body.
- Node* current_context_;
-
// Merge of all control nodes that exit the function body.
Node* exit_control_;
@@ -125,7 +122,7 @@ class AstGraphBuilder : public AstVisitor {
JSOperatorBuilder* javascript() { return jsgraph_->javascript(); }
ZoneVector<Handle<Object>>* globals() { return &globals_; }
Scope* current_scope() const;
- Node* current_context() const { return current_context_; }
+ Node* current_context() const;
Node* dead_control();
Node* exit_control() const { return exit_control_; }
@@ -133,7 +130,6 @@ class AstGraphBuilder : public AstVisitor {
void set_ast_context(AstContext* ctx) { ast_context_ = ctx; }
void set_execution_control(ControlScope* ctrl) { execution_control_ = ctrl; }
void set_execution_context(ContextScope* ctx) { execution_context_ = ctx; }
- void set_current_context(Node* ctx) { current_context_ = ctx; }
void set_exit_control(Node* exit) { exit_control_ = exit; }
// Node creation helpers.
« no previous file with comments | « no previous file | src/compiler/ast-graph-builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698