Index: src/interpreter/bytecode-generator.cc |
diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc |
index 7085244c7826233290f85cd6fd9a02dbb75b8c4d..404b9d3b59e92c9140e03d2df7abbcfa3f984f0e 100644 |
--- a/src/interpreter/bytecode-generator.cc |
+++ b/src/interpreter/bytecode-generator.cc |
@@ -907,13 +907,12 @@ void BytecodeGenerator::VisitModuleNamespaceImports() { |
} |
} |
-void BytecodeGenerator::VisitDeclarations( |
- ZoneList<Declaration*>* declarations) { |
+void BytecodeGenerator::VisitDeclarations(Declaration::List* declarations) { |
RegisterAllocationScope register_scope(this); |
DCHECK(globals_builder()->empty()); |
- for (int i = 0; i < declarations->length(); i++) { |
+ for (Declaration* decl : *declarations) { |
RegisterAllocationScope register_scope(this); |
- Visit(declarations->at(i)); |
+ Visit(decl); |
} |
if (globals_builder()->empty()) return; |