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

Unified Diff: src/interpreter/bytecode-generator.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/interpreter/bytecode-generator.h ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/interpreter/bytecode-generator.cc
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
index 7085244c7826233290f85cd6fd9a02dbb75b8c4d..ff2d1d6f8735b9130ec03679dd9dcf677722027c 100644
--- a/src/interpreter/bytecode-generator.cc
+++ b/src/interpreter/bytecode-generator.cc
@@ -936,13 +936,12 @@ void BytecodeGenerator::VisitDeclarations(
globals_builder_ = new (zone()) GlobalDeclarationsBuilder(zone());
}
-void BytecodeGenerator::VisitStatements(ZoneList<Statement*>* statements) {
- for (int i = 0; i < statements->length(); i++) {
+void BytecodeGenerator::VisitStatements(ZoneChunkList<Statement*>* statements) {
+ for (auto statement : *statements) {
// Allocate an outer register allocations scope for the statement.
RegisterAllocationScope allocation_scope(this);
- Statement* stmt = statements->at(i);
- Visit(stmt);
- if (stmt->IsJump()) break;
+ Visit(statement);
+ if (statement->IsJump()) break;
}
}
« no previous file with comments | « src/interpreter/bytecode-generator.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698