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

Unified Diff: src/ast-numbering.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/ast-expression-visitor.cc ('k') | src/codegen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast-numbering.cc
diff --git a/src/ast-numbering.cc b/src/ast-numbering.cc
index 034dc02bb84917c7019e1d325442e85026ce386b..145025afa9394b02f06ee08e6bdc9bda4f4fd242 100644
--- a/src/ast-numbering.cc
+++ b/src/ast-numbering.cc
@@ -15,11 +15,12 @@ class AstNumberingVisitor final : public AstVisitor {
AstNumberingVisitor(Isolate* isolate, Zone* zone)
: AstVisitor(),
isolate_(isolate),
+ zone_(zone),
next_id_(BailoutId::FirstUsable().ToInt()),
properties_(zone),
slot_cache_(zone),
dont_optimize_reason_(kNoReason) {
- InitializeAstVisitor(isolate, zone);
+ InitializeAstVisitor(isolate);
}
bool Renumber(FunctionLiteral* node);
@@ -73,6 +74,7 @@ class AstNumberingVisitor final : public AstVisitor {
BailoutReason dont_optimize_reason() const { return dont_optimize_reason_; }
Isolate* isolate_;
+ Zone* zone_;
int next_id_;
AstProperties properties_;
// The slot cache allows us to reuse certain feedback vector slots.
@@ -472,7 +474,7 @@ void AstNumberingVisitor::VisitObjectLiteral(ObjectLiteral* node) {
// Mark all computed expressions that are bound to a key that
// is shadowed by a later occurrence of the same key. For the
// marked expressions, no store code will be is emitted.
- node->CalculateEmitStore(zone());
+ node->CalculateEmitStore(zone_);
ReserveFeedbackSlots(node);
}
« no previous file with comments | « src/ast-expression-visitor.cc ('k') | src/codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698