| Index: pkg/compiler/lib/src/cps_ir/optimizers.dart
|
| diff --git a/pkg/compiler/lib/src/cps_ir/optimizers.dart b/pkg/compiler/lib/src/cps_ir/optimizers.dart
|
| index 5fba01ca3ac5d10aca16bb4ef4553e9ece53dde0..4db77c886678c5fb5f08658180dc8e8facb6647b 100644
|
| --- a/pkg/compiler/lib/src/cps_ir/optimizers.dart
|
| +++ b/pkg/compiler/lib/src/cps_ir/optimizers.dart
|
| @@ -27,31 +27,7 @@ part 'shrinking_reductions.dart';
|
| /// An optimization pass over the CPS IR.
|
| abstract class Pass {
|
| /// Applies optimizations to root, rewriting it in the process.
|
| - void rewrite(ExecutableDefinition root) => root.applyPass(this);
|
| -
|
| - void rewriteConstructorDefinition(ConstructorDefinition root);
|
| - void rewriteFunctionDefinition(FunctionDefinition root);
|
| - void rewriteFieldDefinition(FieldDefinition root);
|
| + void rewrite(RootNode root);
|
|
|
| String get passName;
|
| }
|
| -
|
| -abstract class PassMixin implements Pass {
|
| - void rewrite(ExecutableDefinition root) => root.applyPass(this);
|
| -
|
| - void rewriteExecutableDefinition(ExecutableDefinition root);
|
| -
|
| - void rewriteFunctionDefinition(FunctionDefinition root) {
|
| - if (root.isAbstract) return;
|
| - rewriteExecutableDefinition(root);
|
| - }
|
| -
|
| - void rewriteConstructorDefinition(ConstructorDefinition root) {
|
| - if (root.isAbstract) return;
|
| - rewriteExecutableDefinition(root);
|
| - }
|
| - void rewriteFieldDefinition(FieldDefinition root) {
|
| - if (!root.hasInitializer) return;
|
| - rewriteExecutableDefinition(root);
|
| - }
|
| -}
|
|
|