Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 27d52a8795ac99167ea06f863d2c10f86a60117a..feacefd68df18d79604da8a1a03af2a2ac9981d1 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -3113,7 +3113,9 @@ void HOptimizedGraphBuilder::SetUpScope(Scope* scope) { |
void HOptimizedGraphBuilder::VisitStatements(ZoneList<Statement*>* statements) { |
for (int i = 0; i < statements->length(); i++) { |
- CHECK_ALIVE(Visit(statements->at(i))); |
+ Statement* stmt = statements->at(i); |
+ CHECK_ALIVE(Visit(stmt)); |
+ if (stmt->IsJump()) break; |
} |
} |