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

Unified Diff: src/ast/ast-expression-rewriter.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-expression-rewriter.h ('k') | src/ast/ast-literal-reindexer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/ast/ast-expression-rewriter.h ('k') | src/ast/ast-literal-reindexer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698