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

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

Issue 2494093002: Refactor enqueuers (Closed)
Patch Set: Updated cf. comments. Created 4 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/ssa/codegen.dart ('k') | pkg/compiler/tool/perf.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/universe/use.dart
diff --git a/pkg/compiler/lib/src/universe/use.dart b/pkg/compiler/lib/src/universe/use.dart
index 7cb642eae11b7f86834091035dda2d5355597c16..5876a1814f49a0f2f4207ed9bd7fe6a56e3a4a2a 100644
--- a/pkg/compiler/lib/src/universe/use.dart
+++ b/pkg/compiler/lib/src/universe/use.dart
@@ -323,6 +323,8 @@ enum TypeUseKind {
CATCH_TYPE,
TYPE_LITERAL,
INSTANTIATION,
+ MIRROR_INSTANTIATION,
+ NATIVE_INSTANTIATION,
}
/// Use of a [DartType].
@@ -366,6 +368,16 @@ class TypeUse {
return new TypeUse.internal(type, TypeUseKind.INSTANTIATION);
}
+ /// [type] used in an instantiation through mirrors.
+ factory TypeUse.mirrorInstantiation(InterfaceType type) {
+ return new TypeUse.internal(type, TypeUseKind.MIRROR_INSTANTIATION);
+ }
+
+ /// [type] used in a native instantiation.
+ factory TypeUse.nativeInstantiation(InterfaceType type) {
+ return new TypeUse.internal(type, TypeUseKind.NATIVE_INSTANTIATION);
+ }
+
bool operator ==(other) {
if (identical(this, other)) return true;
if (other is! TypeUse) return false;
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | pkg/compiler/tool/perf.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698