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

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

Issue 1319303002: dart2js cps: Scalar replacement of aggregates (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/task.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_closures_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
index 9c6d44e3a587ab47be80a7bd696dc9b5001149b7..820be3ea3e5e50700ec0dd3c6aa75e8de650b990 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
@@ -20,10 +20,7 @@ main(x) {
""",
r"""
function(x) {
- var _box_0 = {};
- _box_0._captured_x_0 = x;
- _box_0._captured_x_0 = J.getInterceptor$ns(x = _box_0._captured_x_0).$add(x, "1");
- P.print(new V.main_a(_box_0)._box_0._captured_x_0);
+ P.print(J.getInterceptor$ns(x).$add(x, "1"));
}"""),
const TestEntry("""
@@ -55,7 +52,7 @@ main(x) {
""",
r"""
function(x) {
- P.print(new V.main_a(x)._captured_x_0);
+ P.print(x);
}"""),
const TestEntry("""
@@ -84,10 +81,7 @@ main() {
""",
r"""
function() {
- var _box_0 = {};
- _box_0._captured_x_0 = 122;
- _box_0._captured_x_0 = _box_0._captured_x_0 + 1;
- P.print(new V.main_closure(_box_0)._box_0._captured_x_0);
+ P.print(122 + 1);
}"""),
const TestEntry("""
@@ -121,10 +115,7 @@ main() {
""",
r"""
function() {
- var _box_0 = {};
- _box_0._captured_x_0 = 122;
- _box_0._captured_x_0 = _box_0._captured_x_0 + 1;
- P.print(new V.main__closure(new V.main_closure(_box_0)._box_0._captured_x_0)._captured_y_1);
+ P.print(122 + 1);
}"""),
const TestEntry("""
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/task.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698