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

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

Issue 1526333002: dart2js cps: Clone small constants to use site. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Update tests Created 5 years 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 51d2762639dc33015fcd26ac991d86e8ed3bc614..c62ee4cdc1c19de095f6204bd103ba3418b58135 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_basic_test.dart
@@ -77,11 +77,10 @@ main() {
""",
"""
function() {
- var a = 10, b = 1;
- P.print(b);
- P.print(a);
- P.print(a);
- P.print(V.foo(b));
+ P.print(1);
+ P.print(10);
+ P.print(10);
+ P.print(V.foo(1));
}"""),
const TestEntry(
"""
@@ -149,9 +148,8 @@ var foo = 0;
main() { print(foo = 42); }
""", r"""
function() {
- var v0 = 42;
- $.foo = v0;
- P.print(v0);
+ $.foo = 42;
+ P.print(42);
}"""),
const TestEntry("""
set foo(x) { print(x); }

Powered by Google App Engine
This is Rietveld 408576698