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

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

Issue 1238163003: dart2js cps: Share interceptors by default and propagate to use later. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Renamed to let_sinking.dart Created 5 years, 5 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_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 42d4e5afba9ccb8bbb79bdc95b4a217e489ded2c..2f582934a43270a96049f6b4a1b3aaad63985e04 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,10 @@ main(x) {
""",
r"""
function(x) {
- var _box_0 = {}, a = new V.main_a(_box_0);
+ 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(a.call$0());
+ P.print(new V.main_a(_box_0).call$0());
}"""),
const TestEntry("""
@@ -49,10 +49,10 @@ main() {
""",
r"""
function() {
- var _box_0 = {}, a = new V.main_closure(_box_0);
+ var _box_0 = {};
_box_0._captured_x_0 = 122;
_box_0._captured_x_0 = _box_0._captured_x_0 + 1;
- P.print(a.call$0());
+ P.print(new V.main_closure(_box_0).call$0());
}"""),
const TestEntry("""
@@ -68,10 +68,10 @@ main() {
""",
r"""
function() {
- var _box_0 = {}, a = new V.main_closure(_box_0);
+ var _box_0 = {};
_box_0._captured_x_0 = 122;
_box_0._captured_x_0 = _box_0._captured_x_0 + 1;
- P.print(a.call$0().call$0());
+ P.print(new V.main_closure(_box_0).call$0().call$0());
}"""),
const TestEntry("""

Powered by Google App Engine
This is Rietveld 408576698