| Index: src/crankshaft/typing.cc
|
| diff --git a/src/crankshaft/typing.cc b/src/crankshaft/typing.cc
|
| index 1215dc25f24b43bcf46104b4e3eae484304f6ab5..2af0492e30ce40e71937f1e1904837713a5c6979 100644
|
| --- a/src/crankshaft/typing.cc
|
| +++ b/src/crankshaft/typing.cc
|
| @@ -114,12 +114,10 @@ void AstTyper::Run() {
|
| RECURSE(VisitStatements(root_->body()));
|
| }
|
|
|
| -
|
| -void AstTyper::VisitStatements(ZoneList<Statement*>* stmts) {
|
| - for (int i = 0; i < stmts->length(); ++i) {
|
| - Statement* stmt = stmts->at(i);
|
| - RECURSE(Visit(stmt));
|
| - if (stmt->IsJump()) break;
|
| +void AstTyper::VisitStatements(ZoneChunkList<Statement*>* statements) {
|
| + for (auto statement : *statements) {
|
| + RECURSE(Visit(statement));
|
| + if (statement->IsJump()) break;
|
| }
|
| }
|
|
|
| @@ -221,10 +219,10 @@ void AstTyper::VisitSwitchStatement(SwitchStatement* stmt) {
|
| if (!clause_effects.IsEmpty()) complex_effects = true;
|
| }
|
|
|
| - ZoneList<Statement*>* stmts = clause->statements();
|
| + ZoneChunkList<Statement*>* stmts = clause->statements();
|
| RECURSE(VisitStatements(stmts));
|
| ExitEffects();
|
| - if (stmts->is_empty() || stmts->last()->IsJump()) {
|
| + if (stmts->size() == 0 || stmts->back()->IsJump()) {
|
| local_effects.Alt(clause_effects);
|
| } else {
|
| complex_effects = true;
|
|
|