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

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

Issue 1245583002: Deferred loading track type-dependencies for is, as and type-annotations. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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/deferred_load.dart ('k') | pkg/compiler/lib/src/resolution/tree_elements.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/resolution/registry.dart
diff --git a/pkg/compiler/lib/src/resolution/registry.dart b/pkg/compiler/lib/src/resolution/registry.dart
index 1f3e943158451ecb143e653e593c67c396e0f44e..36c4618af8bf2ec80c840d35947108407a59a33c 100644
--- a/pkg/compiler/lib/src/resolution/registry.dart
+++ b/pkg/compiler/lib/src/resolution/registry.dart
@@ -398,11 +398,13 @@ class ResolutionRegistry implements Registry {
void registerIsCheck(DartType type) {
worldImpact.registerCheckedType(type);
backend.resolutionCallbacks.onIsCheck(type, this);
+ mapping.addRequiredType(type);
}
void registerAsCheck(DartType type) {
registerIsCheck(type);
backend.resolutionCallbacks.onAsCheck(type, this);
+ mapping.addRequiredType(type);
}
void registerClosure(LocalFunctionElement element) {
@@ -480,6 +482,7 @@ class ResolutionRegistry implements Registry {
void registerInstantiatedType(InterfaceType type) {
world.registerInstantiatedType(type, this);
+ mapping.addRequiredType(type);
}
void registerAbstractClassInstantiation() {
@@ -492,6 +495,7 @@ class ResolutionRegistry implements Registry {
void registerRequiredType(DartType type, Element enclosingElement) {
backend.registerRequiredType(type, enclosingElement);
+ mapping.addRequiredType(type);
}
void registerStringInterpolation() {
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/resolution/tree_elements.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698