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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart

Issue 1094433003: tree-ir: Move labeled statements outside loops. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 5 years, 8 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 | « pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
index fa3b9522893ada6cb74d44bfcc239ad54df8eb33..d1d19c9672c60d851abc280717b3a3d9c420cdbc 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_control_flow_test.dart
@@ -58,17 +58,15 @@ main() {
function() {
var i = 0;
L1:
- while (true) {
- if (P.identical(V.foo(true), true)) {
- P.print(1);
- if (!P.identical(V.foo(false), true)) {
- i = V.foo(i);
- continue L1;
- }
- }
- P.print(2);
- return null;
+ while (P.identical(V.foo(true), true)) {
+ P.print(1);
+ if (!P.identical(V.foo(false), true))
+ i = V.foo(i);
+ else
+ break L1;
}
+ P.print(2);
+ return null;
}"""),
const TestEntry("""
foo(a) => a;
« no previous file with comments | « pkg/compiler/lib/src/tree_ir/optimization/loop_rewriter.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698