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

Unified Diff: tests/compiler/dart2js/js_backend_cps_ir_interceptors_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_interceptors_test.dart
diff --git a/tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart b/tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart
index 47ab15647ff8e83e9f67ccba626edd66937ebfd5..87e90e49f6c0d4127e122dd5665c9250ffd68c22 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart
@@ -18,8 +18,7 @@ main() {
}""",
r"""
function() {
- var g = 1;
- P.print(J.getInterceptor$ns(g).$add(g, 3));
+ P.print(4);
return null;
}"""),
const TestEntry("""
@@ -38,10 +37,10 @@ function() {
var l = ["hest", ["h", "e", "s", "t"]], i, x, j;
P.print(J.getInterceptor$as(l).get$length(l));
i = 0;
- while (P.identical(J.getInterceptor$n(i).$lt(i, J.getInterceptor$as(l).get$length(l)), true)) {
+ while (J.getInterceptor$n(i).$lt(i, J.getInterceptor$as(l).get$length(l))) {
x = J.getInterceptor$as(l).$index(l, i);
j = 0;
- while (P.identical(J.getInterceptor$n(j).$lt(j, J.getInterceptor$as(x).get$length(x)), true)) {
+ while (J.getInterceptor$n(j).$lt(j, J.getInterceptor$as(x).get$length(x))) {
P.print(J.getInterceptor$as(x).$index(x, j));
j = J.getInterceptor$ns(j).$add(j, 1);
}

Powered by Google App Engine
This is Rietveld 408576698