| Index: src/ast/ast-expression-rewriter.cc
|
| diff --git a/src/ast/ast-expression-rewriter.cc b/src/ast/ast-expression-rewriter.cc
|
| index c4fa71be0a2ce769139a7615c080343d63705a21..e2114e38efd6b2e571767e3fe543dc7787b3be24 100644
|
| --- a/src/ast/ast-expression-rewriter.cc
|
| +++ b/src/ast/ast-expression-rewriter.cc
|
| @@ -27,10 +27,10 @@ void AstExpressionRewriter::VisitDeclarations(
|
| }
|
| }
|
|
|
| -
|
| -void AstExpressionRewriter::VisitStatements(ZoneList<Statement*>* statements) {
|
| - for (int i = 0; i < statements->length(); i++) {
|
| - AST_REWRITE_LIST_ELEMENT(Statement, statements, i);
|
| +void AstExpressionRewriter::VisitStatements(
|
| + ZoneChunkList<Statement*>* statements) {
|
| + for (auto it = statements->begin(); it != statements->end(); it++) {
|
| + AST_REWRITE(Statement, *it, *it = replacement);
|
| // Not stopping when a jump statement is found.
|
| }
|
| }
|
| @@ -187,7 +187,7 @@ void AstExpressionRewriter::VisitDebuggerStatement(DebuggerStatement* node) {
|
| void AstExpressionRewriter::VisitFunctionLiteral(FunctionLiteral* node) {
|
| REWRITE_THIS(node);
|
| VisitDeclarations(node->scope()->declarations());
|
| - ZoneList<Statement*>* body = node->body();
|
| + ZoneChunkList<Statement*>* body = node->body();
|
| if (body != nullptr) VisitStatements(body);
|
| }
|
|
|
|
|