Index: src/full-codegen.cc |
diff --git a/src/full-codegen.cc b/src/full-codegen.cc |
index ad2a9947f3d89a1f5363258d059151b2def093df..c32309a61f77b646d039dfc6cf490e16d761ad24 100644 |
--- a/src/full-codegen.cc |
+++ b/src/full-codegen.cc |
@@ -163,6 +163,12 @@ void BreakableStatementChecker::VisitForInStatement(ForInStatement* stmt) { |
} |
+void BreakableStatementChecker::VisitForOfStatement(ForOfStatement* stmt) { |
+ // Mark for in statements breakable if the iterable expression is. |
+ Visit(stmt->iterable()); |
+} |
+ |
+ |
void BreakableStatementChecker::VisitTryCatchStatement( |
TryCatchStatement* stmt) { |
// Mark try catch as breakable to avoid adding a break slot in front of it. |
@@ -1383,6 +1389,11 @@ void FullCodeGenerator::VisitForStatement(ForStatement* stmt) { |
} |
+void FullCodeGenerator::VisitForOfStatement(ForOfStatement* stmt) { |
+ // TODO(wingo): Implement. |
+} |
+ |
+ |
void FullCodeGenerator::VisitTryCatchStatement(TryCatchStatement* stmt) { |
Comment cmnt(masm_, "[ TryCatchStatement"); |
SetStatementPosition(stmt); |