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

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

Issue 918653002: Propagate pseudo-constants expressions separately in tree rewriter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase Created 5 years, 10 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/js_backend_cps_ir_basic_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart
index 004d80f71025030baa0490ede9d9de49c2fd188d..60deac3cb5d39f0847c857a0bdc7e7fc54363142 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart
@@ -26,8 +26,7 @@ main() {
print('($m)');
}""",r"""
function() {
- var e, l, m;
- e = 1;
+ var l, m;
l = [1, 2, 3];
m = P.LinkedHashMap_LinkedHashMap$_literal(["s", 1]);
P.print("()");
@@ -35,7 +34,7 @@ function() {
P.print("(" + 1 + ")");
P.print("(" + H.S([1, 2, 3]) + ")");
P.print("(" + H.S(P.LinkedHashMap_LinkedHashMap$_literal(["s", 1])) + ")");
- P.print("(" + H.S(e) + ")");
+ P.print("(" + 1 + ")");
P.print("(" + H.S(l) + ")");
P.print("(" + H.S(m) + ")");
return null;
@@ -54,14 +53,11 @@ main() {
""",
"""
function() {
- var v0, v1;
V.foo(0, "b");
V.foo(1, 2);
V.bar(3, "b", "c");
V.bar(4, 5, "c");
- v0 = 6;
- v1 = 7;
- V.bar(v0, "b", v1);
+ V.bar(6, "b", 7);
V.bar(8, 9, 10);
return null;
}"""),
« no previous file with comments | « pkg/compiler/lib/src/tree_ir/tree_ir_tracer.dart ('k') | tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698