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

Unified Diff: src/ast/prettyprinter.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/prettyprinter.h ('k') | src/compiler/instruction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/prettyprinter.cc
diff --git a/src/ast/prettyprinter.cc b/src/ast/prettyprinter.cc
index 19e9478da27a18f38fbbb7e6eb6279e84e873c8b..3fe2f73cd3350f127dd99d4c89a66e11065626ba 100644
--- a/src/ast/prettyprinter.cc
+++ b/src/ast/prettyprinter.cc
@@ -386,11 +386,10 @@ void CallPrinter::VisitRewritableExpression(RewritableExpression* node) {
Find(node->expression());
}
-
-void CallPrinter::FindStatements(ZoneList<Statement*>* statements) {
+void CallPrinter::FindStatements(ZoneChunkList<Statement*>* statements) {
if (statements == NULL) return;
- for (int i = 0; i < statements->length(); i++) {
- Find(statements->at(i));
+ for (Statement* statement : *statements) {
+ Find(statement);
}
}
@@ -682,10 +681,9 @@ void AstPrinter::PrintParameters(DeclarationScope* scope) {
}
}
-
-void AstPrinter::PrintStatements(ZoneList<Statement*>* statements) {
- for (int i = 0; i < statements->length(); i++) {
- Visit(statements->at(i));
+void AstPrinter::PrintStatements(ZoneChunkList<Statement*>* statements) {
+ for (Statement* statement : *statements) {
+ Visit(statement);
}
}
« no previous file with comments | « src/ast/prettyprinter.h ('k') | src/compiler/instruction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698