Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(422)

Unified Diff: pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart

Issue 1287253002: dart2js cps: Compile some loops as 'for' loops. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update test expectations Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
diff --git a/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart b/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
index 3fa61dd22b4d1e5d8f4f58f26164fa4398048d87..253006dac44cafe1fe685f1dcd5da943e6a7c5ef 100644
--- a/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
+++ b/pkg/compiler/lib/src/tree_ir/optimization/statement_rewriter.dart
@@ -664,9 +664,9 @@ class StatementRewriter extends Transformer implements Pass {
return node;
}
- Statement visitWhileCondition(WhileCondition node) {
+ Statement visitFor(For node) {
// Not introduced yet
- throw "Unexpected WhileCondition in StatementRewriter";
+ throw "Unexpected For in StatementRewriter";
}
Statement visitTry(Try node) {

Powered by Google App Engine
This is Rietveld 408576698