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

Unified Diff: pkg/compiler/lib/src/common/codegen.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 | « no previous file | 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/common/codegen.dart
diff --git a/pkg/compiler/lib/src/common/codegen.dart b/pkg/compiler/lib/src/common/codegen.dart
index c20c45fe88d9b6bd67b08cd1d673c53c20914b7b..48afea5bfcc2dc1b8b8dcef36e949160990f3dac 100644
--- a/pkg/compiler/lib/src/common/codegen.dart
+++ b/pkg/compiler/lib/src/common/codegen.dart
@@ -24,7 +24,8 @@ import '../resolution/tree_elements.dart' show
TreeElements;
import '../universe/use.dart' show
DynamicUse,
- StaticUse;
+ StaticUse,
+ TypeUse;
import '../universe/world_impact.dart' show
WorldImpact,
WorldImpactBuilder;
@@ -189,8 +190,8 @@ class CodegenRegistry extends Registry {
compiler.dumpInfoTask.elementUsesSelector(currentElement, dynamicUse);
}
- void registerIsCheck(DartType type) {
- worldImpact.registerIsCheck(type);
+ void registerTypeUse(TypeUse typeUse) {
+ worldImpact.registerTypeUse(typeUse);
}
void registerCompileTimeConstant(ConstantValue constant) {
@@ -223,7 +224,7 @@ class CodegenRegistry extends Registry {
}
void registerInstantiation(InterfaceType type) {
- worldImpact.registerInstantiatedType(type);
+ registerTypeUse(new TypeUse.instantiation(type));
}
void registerAsyncMarker(FunctionElement element) {
« no previous file with comments | « no previous file | pkg/compiler/lib/src/dart_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698