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

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

Issue 1188783002: dart2js cps: Overhaul PullIntoInitializers. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Comments Created 5 years, 6 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 | « tests/co19/co19-dart2js.status ('k') | tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart » ('j') | 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 d68f50aba36319c803506d54ab1410464dd5b02b..80425e6cc02f641f0137d3c5b4f074b13a72ead6 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
@@ -20,9 +20,8 @@ main(x) {
""",
r"""
function(x) {
- var _box_0 = {}, a;
+ var _box_0 = {}, a = new V.main_a(_box_0);
_box_0._captured_x_0 = x;
- a = new V.main_a(_box_0);
_box_0._captured_x_0 = J.getInterceptor$ns(x = _box_0._captured_x_0).$add(x, "1");
P.print(a.call$0());
return null;
@@ -52,9 +51,8 @@ main() {
""",
r"""
function() {
- var _box_0 = {}, a;
+ var _box_0 = {}, a = new V.main_closure(_box_0);
_box_0._captured_x_0 = 122;
- a = new V.main_closure(_box_0);
_box_0._captured_x_0 = _box_0._captured_x_0 + 1;
P.print(a.call$0());
return null;
@@ -73,9 +71,8 @@ main() {
""",
r"""
function() {
- var _box_0 = {}, a;
+ var _box_0 = {}, a = new V.main_closure(_box_0);
_box_0._captured_x_0 = 122;
- a = new V.main_closure(_box_0);
_box_0._captured_x_0 = _box_0._captured_x_0 + 1;
P.print(a.call$0().call$0());
return null;
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/compiler/dart2js/js_backend_cps_ir_constructor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698