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

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

Issue 1422623014: Add TypeUse. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 1 month 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/codegen.dart ('k') | pkg/compiler/lib/src/dart_backend/dart_backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_backend/backend.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart
index 34f08761d1e37fb6501f70ab72931a03f2fa80eb..9169aaef2c56c444f24918d8428e663485e94c6b 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -364,12 +364,11 @@ class DartImpactTransformer extends ImpactTransformer {
backend.usedTypeLiterals.add(typeLiteral.element);
}
}
- for (InterfaceType instantiatedType in worldImpact.instantiatedTypes) {
- // TODO(johnniwinther): Remove this when dependency tracking is done on
- // the world impact itself.
- transformed.registerInstantiatedType(instantiatedType);
- backend.registerPlatformMembers(instantiatedType,
- registerUse: transformed.registerDynamicUse);
+ for (TypeUse typeUse in worldImpact.typeUses) {
+ if (typeUse.kind == TypeUseKind.INSTANTIATION) {
+ backend.registerPlatformMembers(typeUse.type,
+ registerUse: transformed.registerDynamicUse);
+ }
}
return transformed;
}
« no previous file with comments | « pkg/compiler/lib/src/common/codegen.dart ('k') | pkg/compiler/lib/src/dart_backend/dart_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698