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

Unified Diff: pkg/compiler/lib/src/compiler.dart

Issue 1421463005: Move codegen registration to transformImpact method. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 2 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
« no previous file with comments | « pkg/compiler/lib/src/common/resolution.dart ('k') | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..6c9c932f4063c7684f575b37406aa3e262203dd4 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,16 @@ 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);
+
+ // TODO(johnniwinther): Rename world/universe/enqueuer through out the
+ // compiler.
+ @override
+ Enqueuer get world => compiler.enqueuer.codegen;
void registerDependency(Element element) {
if (element == null) return;
« no previous file with comments | « pkg/compiler/lib/src/common/resolution.dart ('k') | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698