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

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

Issue 1175973005: dart2js cps: Introduce some built-in operators in type propagation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Status files 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
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 d4459d7cfe2d365d0ca5d832fdde232ffb84b981..d68f50aba36319c803506d54ab1410464dd5b02b 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_closures_test.dart
@@ -52,10 +52,10 @@ main() {
""",
r"""
function() {
- var _box_0 = {}, a, x;
+ var _box_0 = {}, a;
_box_0._captured_x_0 = 122;
a = new V.main_closure(_box_0);
- _box_0._captured_x_0 = J.getInterceptor$ns(x = _box_0._captured_x_0).$add(x, 1);
+ _box_0._captured_x_0 = _box_0._captured_x_0 + 1;
P.print(a.call$0());
return null;
}"""),
@@ -73,10 +73,10 @@ main() {
""",
r"""
function() {
- var _box_0 = {}, a, x;
+ var _box_0 = {}, a;
_box_0._captured_x_0 = 122;
a = new V.main_closure(_box_0);
- _box_0._captured_x_0 = J.getInterceptor$ns(x = _box_0._captured_x_0).$add(x, 1);
+ _box_0._captured_x_0 = _box_0._captured_x_0 + 1;
P.print(a.call$0().call$0());
return null;
}"""),
@@ -93,7 +93,7 @@ main() {
r"""
function() {
var a = null, i = 0;
- while (P.identical(J.getInterceptor$n(i).$lt(i, 10), true)) {
+ while (J.getInterceptor$n(i).$lt(i, 10)) {
a = new V.main_closure(i);
i = J.getInterceptor$ns(i).$add(i, 1);
}

Powered by Google App Engine
This is Rietveld 408576698