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

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

Issue 2246623002: Delete CPS IR (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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: tests/compiler/dart2js/cps_ir/expected/redundant_condition.js
diff --git a/tests/compiler/dart2js/cps_ir/expected/redundant_condition.js b/tests/compiler/dart2js/cps_ir/expected/redundant_condition.js
deleted file mode 100644
index 211aec6f54359b82e0694b2ae07ee9483c35545e..0000000000000000000000000000000000000000
--- a/tests/compiler/dart2js/cps_ir/expected/redundant_condition.js
+++ /dev/null
@@ -1,35 +0,0 @@
-// Expectation for test:
-// // This test illustrates an opportunity to remove redundant code by
-// // propagating inforamtion after inlining.
-// //
-// // The code below inlines `foo` twice, but we don't propagate that we already
-// // know from the first `foo` that `a` is an int, so the second check can be
-// // removed entirely.
-//
-// import 'package:expect/expect.dart';
-//
-// main() {
-// var a = nextNumber();
-// action(foo(a));
-// action(foo(a));
-// }
-//
-// foo(x) {
-// if (x is! int) throw "error 1";
-// return x + 5 % 100;
-// }
-//
-// @NoInline() @AssumeDynamic()
-// nextNumber() => int.parse('33');
-//
-// @NoInline()
-// action(v) => print(v);
-
-function() {
- var a = V.nextNumber();
- if (typeof a !== "number" || Math.floor(a) !== a)
- throw H.wrapException("error 1");
- a += 5;
- V.action(a);
- V.action(a);
-}
« no previous file with comments | « tests/compiler/dart2js/cps_ir/expected/optimize_indexers.js ('k') | tests/compiler/dart2js/cps_ir/expected/runtime_types_1.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698