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

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

Issue 1353443002: dart2js cps: Add a pass for eliminating bounds checks. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 cafe8120c4985baad4210fdba65d87a6d086dedc..947d91956be1631098ee451412284a7c518e81ab 100644
--- a/tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart
+++ b/tests/compiler/dart2js/js_backend_cps_ir_interceptors_test.dart
@@ -35,11 +35,9 @@ r"""
function() {
var l = ["hest", ["h", "e", "s", "t"]], i = 0, x_, x, j;
for (P.print(l.length); i < l.length; i = i + 1) {
- if (i < 0 || i >= l.length)
- H.ioore(l, i);
x_ = J.getInterceptor$as(x = l[i]);
for (j = 0; j < x_.get$length(x); j = j + 1) {
- if (j < 0 || j >= x.length)
+ if (j >= x.length)
H.ioore(x, j);
P.print(x[j]);
}

Powered by Google App Engine
This is Rietveld 408576698