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

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

Issue 1232083002: dart2js cps: Emit unlabeled breaks and continues when possible. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update test Created 5 years, 5 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/js_backend/codegen/codegen.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 b16a1a88966c779b110d0bb770a52b7401162a6e..adf8db795e4c5e1608161a4f0f19bb9a454efaf2 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
@@ -57,13 +57,12 @@ main() {
}""", """
function() {
var i = 0;
- L2:
- while (P.identical(V.foo(true), true)) {
- P.print(1);
- if (P.identical(V.foo(false), true))
- break L2;
- i = V.foo(i);
- }
+ while (P.identical(V.foo(true), true)) {
+ P.print(1);
+ if (P.identical(V.foo(false), true))
+ break;
+ i = V.foo(i);
+ }
P.print(2);
}"""),
const TestEntry("""
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/codegen.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698