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

Unified Diff: src/ast/ast-numbering.cc

Issue 2452403003: Changed statement ZoneList to a ZoneChunkList
Patch Set: Created 4 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/ast-literal-reindexer.cc ('k') | src/ast/ast-traversal-visitor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast-numbering.cc
diff --git a/src/ast/ast-numbering.cc b/src/ast/ast-numbering.cc
index e0069f81ac8d8137070379f7a525f2515d04da8a..bb2cd82021d1b2db0debbb1212660fe3e10ae6b7 100644
--- a/src/ast/ast-numbering.cc
+++ b/src/ast/ast-numbering.cc
@@ -36,7 +36,7 @@ class AstNumberingVisitor final : public AstVisitor<AstNumberingVisitor> {
void VisitPropertyReference(Property* node);
void VisitReference(Expression* expr);
- void VisitStatements(ZoneList<Statement*>* statements);
+ void VisitStatements(ZoneChunkList<Statement*>* statements);
void VisitDeclarations(ZoneList<Declaration*>* declarations);
void VisitArguments(ZoneList<Expression*>* arguments);
void VisitLiteralProperty(LiteralProperty* property);
@@ -539,11 +539,11 @@ void AstNumberingVisitor::VisitCallNew(CallNew* node) {
VisitArguments(node->arguments());
}
-
-void AstNumberingVisitor::VisitStatements(ZoneList<Statement*>* statements) {
+void AstNumberingVisitor::VisitStatements(
+ ZoneChunkList<Statement*>* statements) {
if (statements == NULL) return;
- for (int i = 0; i < statements->length(); i++) {
- Visit(statements->at(i));
+ for (auto statement : *statements) {
+ Visit(statement);
}
}
« no previous file with comments | « src/ast/ast-literal-reindexer.cc ('k') | src/ast/ast-traversal-visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698