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

Unified Diff: src/ast/ast-literal-reindexer.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.h ('k') | src/ast/ast-numbering.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast-literal-reindexer.cc
diff --git a/src/ast/ast-literal-reindexer.cc b/src/ast/ast-literal-reindexer.cc
index 81a5225fdc2ee7e9a15f89452577db866c40ba72..f9629ef7d161b8252752818a611117f520e49335 100644
--- a/src/ast/ast-literal-reindexer.cc
+++ b/src/ast/ast-literal-reindexer.cc
@@ -285,11 +285,11 @@ void AstLiteralReindexer::VisitCallNew(CallNew* node) {
VisitArguments(node->arguments());
}
-
-void AstLiteralReindexer::VisitStatements(ZoneList<Statement*>* statements) {
+void AstLiteralReindexer::VisitStatements(
+ ZoneChunkList<Statement*>* statements) {
if (statements == NULL) return;
- for (int i = 0; i < statements->length(); i++) {
- Visit(statements->at(i));
+ for (Statement* statement : *statements) {
+ Visit(statement);
}
}
« no previous file with comments | « src/ast/ast-literal-reindexer.h ('k') | src/ast/ast-numbering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698