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

Unified Diff: tests/compiler/dart2js/cps_ir/expected/control_flow_2.js

Issue 1560963002: Do TypePropagation again after inlining (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: fix tests Created 4 years, 11 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: tests/compiler/dart2js/cps_ir/expected/control_flow_2.js
diff --git a/tests/compiler/dart2js/cps_ir/expected/control_flow_2.js b/tests/compiler/dart2js/cps_ir/expected/control_flow_2.js
index d459eabe6c3a4b5f738ac7222158fd4c13369742..3cb97185ebfb24cb5cb84897f4ca250d6c156dc7 100644
--- a/tests/compiler/dart2js/cps_ir/expected/control_flow_2.js
+++ b/tests/compiler/dart2js/cps_ir/expected/control_flow_2.js
@@ -1,5 +1,5 @@
// Expectation for test:
-// foo(a) { print(a); return a; }
+// foo(a) { try { print(a); } finally { return a; } }
//
// main() {
// while (true) {
@@ -14,20 +14,14 @@
// }
function() {
- L1:
+ L0:
for (;;)
- L0:
- for (;;)
- for (;;) {
- P.print(true);
- if (false) {
- P.print(1);
- continue L0;
- }
- P.print(false);
- if (false) {
- P.print(2);
- continue L1;
- }
+ for (;;) {
+ while (V.foo(true))
+ if (V.foo(false)) {
+ P.print(2);
+ continue L0;
}
+ P.print(1);
+ }
}
« no previous file with comments | « tests/compiler/dart2js/cps_ir/expected/codeUnitAt_2.js ('k') | tests/compiler/dart2js/cps_ir/expected/control_flow_3.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698