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

Unified Diff: src/rewriter.cc

Issue 1394303008: Remove unused Zone argument from InitializeAstVisitor (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix cctests Created 5 years, 2 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 | « src/prettyprinter.cc ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/rewriter.cc
diff --git a/src/rewriter.cc b/src/rewriter.cc
index 9df46c9beef236551026f893d1c89da3cefb970d..3c9c2fd0351bd3366a0003c80603490f949e0bd5 100644
--- a/src/rewriter.cc
+++ b/src/rewriter.cc
@@ -19,9 +19,10 @@ class Processor: public AstVisitor {
result_assigned_(false),
replacement_(nullptr),
is_set_(false),
+ zone_(ast_value_factory->zone()),
scope_(scope),
factory_(ast_value_factory) {
- InitializeAstVisitor(isolate, ast_value_factory->zone());
+ InitializeAstVisitor(isolate);
}
virtual ~Processor() { }
@@ -29,6 +30,7 @@ class Processor: public AstVisitor {
void Process(ZoneList<Statement*>* statements);
bool result_assigned() const { return result_assigned_; }
+ Zone* zone() { return zone_; }
Scope* scope() { return scope_; }
AstNodeFactory* factory() { return &factory_; }
@@ -51,6 +53,7 @@ class Processor: public AstVisitor {
// was hoping for.
bool is_set_;
+ Zone* zone_;
Scope* scope_;
AstNodeFactory factory_;
« no previous file with comments | « src/prettyprinter.cc ('k') | src/runtime/runtime-internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698