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 6ef2bd314a3171552f73110a7bbfff3fe9346e6a..2ee5880c6062629b724d11e534a9e8e0f3b2d14a 100644 |
--- a/pkg/compiler/lib/src/js_backend/codegen/task.dart |
+++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart |
@@ -206,6 +206,7 @@ class CpsFunctionCompiler implements FunctionCompiler { |
applyCpsPass(new RedundantPhiEliminator(), cpsFunction); |
applyCpsPass(new InsertRefinements(typeSystem), cpsFunction); |
applyCpsPass(new TypePropagator(compiler, typeSystem, this), cpsFunction); |
+ applyCpsPass(new ShareFinalFields(backend), cpsFunction); |
applyCpsPass(new RemoveRefinements(), cpsFunction); |
applyCpsPass(new ShrinkingReducer(), cpsFunction); |
applyCpsPass(new ScalarReplacer(compiler), cpsFunction); |