Chromium Code Reviews| Index: pkg/compiler/lib/src/compiler.dart |
| diff --git a/pkg/compiler/lib/src/compiler.dart b/pkg/compiler/lib/src/compiler.dart |
| index 5a69c65746921f1e3fc05ff49fc0cd1f32b8fb3b..eb5b2231f01b742bf22940c1731b1acb2f9e7381 100644 |
| --- a/pkg/compiler/lib/src/compiler.dart |
| +++ b/pkg/compiler/lib/src/compiler.dart |
| @@ -17,12 +17,13 @@ import 'common.dart'; |
| import 'common/backend_api.dart' show |
| Backend; |
| import 'common/codegen.dart' show |
| - CodegenRegistry, |
| + CodegenImpact, |
| CodegenWorkItem; |
| import 'common/names.dart' show |
| Identifiers, |
| Uris; |
| import 'common/registry.dart' show |
| + EagerRegistry, |
| Registry; |
| import 'common/resolution.dart' show |
| Parsing, |
| @@ -2004,7 +2005,7 @@ class _CompilerResolution implements Resolution { |
| compiler.checker.check(element); |
| } |
| WorldImpact worldImpact = |
| - compiler.backend.resolutionCallbacks.transformImpact( |
| + compiler.backend.impactTransformer.transformResolutionImpact( |
| resolutionImpact); |
| return worldImpact; |
| }); |
| @@ -2044,11 +2045,13 @@ class _CompilerParsing implements Parsing { |
| } |
| } |
| -class GlobalDependencyRegistry extends CodegenRegistry { |
| +class GlobalDependencyRegistry extends EagerRegistry { |
| + final Compiler compiler; |
| Setlet<Element> _otherDependencies; |
| - GlobalDependencyRegistry(Compiler compiler) |
| - : super(compiler, new TreeElementMapping(null)); |
| + GlobalDependencyRegistry(this.compiler) : super('GlobalDependencies', null); |
| + |
| + Enqueuer get world => compiler.enqueuer.codegen; |
|
sigurdm
2015/10/26 15:04:10
is "world" the best word for this? What about "cod
Johnni Winther
2015/10/27 10:33:51
No. It's an override. We need refactor in general
|
| void registerDependency(Element element) { |
| if (element == null) return; |