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 b1eb2a1fac7b551f9e43f6f1e14bde0efad13718..78f61cb1bad41b528b5bc101473c4eeb6b551b65 100644 |
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart |
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart |
@@ -209,9 +209,10 @@ class CpsFunctionCompiler implements FunctionCompiler { |
applyCpsPass(new RedundantJoinEliminator(), cpsFunction); |
applyCpsPass(new ShrinkingReducer(), cpsFunction); |
applyCpsPass(new RedundantRefinementEliminator(typeSystem), cpsFunction); |
+ applyCpsPass(new EagerlyLoadStatics(), cpsFunction); |
applyCpsPass(new GVN(compiler, typeSystem), cpsFunction); |
applyCpsPass(new UpdateRefinements(typeSystem), cpsFunction); |
- applyCpsPass(new BoundsChecker(typeSystem, compiler.world), cpsFunction); // TODO: where to do bounds checking? |
+ applyCpsPass(new BoundsChecker(typeSystem, compiler.world), cpsFunction); |
applyCpsPass(new ShrinkingReducer(), cpsFunction); |
applyCpsPass(new ScalarReplacer(compiler), cpsFunction); |
applyCpsPass(new MutableVariableEliminator(), cpsFunction); |