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