| 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);
|
| }
|
| }
|
|
|
|
|