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

Unified Diff: lib/compiler/implementation/ssa/codegen.dart

Issue 11033016: Added TODO. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
« no previous file with comments | « lib/compiler/implementation/ssa/builder.dart ('k') | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/codegen.dart
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
index f0144068878ff572b8bc07903537f4249c128639..1a24e639124b794e02b1573a88d08edfb17b4844 100644
--- a/lib/compiler/implementation/ssa/codegen.dart
+++ b/lib/compiler/implementation/ssa/codegen.dart
@@ -810,7 +810,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
// Treate all three "test-first" loops the same way.
case HLoopBlockInformation.FOR_LOOP:
case HLoopBlockInformation.WHILE_LOOP:
- case HLoopBlockInformation.FOR_IN_LOOP: {
+ case HLoopBlockInformation.FOR_IN_LOOP:
HBlockInformation initialization = info.initializer;
int initializationType = TYPE_STATEMENT;
if (initialization !== null) {
@@ -912,8 +912,7 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
loop = new js.While(jsCondition, body);
}
break;
- }
- case HLoopBlockInformation.DO_WHILE_LOOP: {
+ case HLoopBlockInformation.DO_WHILE_LOOP:
// Generate do-while loop in all cases.
if (info.initializer !== null) {
generateStatements(info.initializer);
@@ -940,7 +939,6 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
body = unwrapStatement(body);
loop = new js.Do(body, jsCondition);
break;
- }
default:
compiler.internalError(
'Unexpected loop kind: ${info.kind}',
« no previous file with comments | « lib/compiler/implementation/ssa/builder.dart ('k') | lib/compiler/implementation/ssa/nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698