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