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

Unified Diff: pkg/compiler/lib/src/js_backend/codegen/task.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: pkg/compiler/lib/src/js_backend/codegen/task.dart
diff --git a/pkg/compiler/lib/src/js_backend/codegen/task.dart b/pkg/compiler/lib/src/js_backend/codegen/task.dart
index 16093d3e59fba4c74dbcc207c1f4e0d7c049828f..e04d9f14e72c911894a9887e2db0c366ecd7a631 100644
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart
@@ -187,6 +187,7 @@ class CpsFunctionCompiler implements FunctionCompiler {
applyCpsPass(new MutableVariableEliminator());
applyCpsPass(new RedundantJoinEliminator());
applyCpsPass(new RedundantPhiEliminator());
+ applyCpsPass(new BoundsChecker(typeSystem, compiler.world));
applyCpsPass(new ShrinkingReducer());
applyCpsPass(new LoopInvariantCodeMotion());
applyCpsPass(new ShareInterceptors());

Powered by Google App Engine
This is Rietveld 408576698