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

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

Issue 2500373003: Compute WorldImpact for mirror analysis. (Closed)
Patch Set: Remove Enqueuer.registerTypeUse 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 | « no previous file | pkg/compiler/lib/src/js_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/enqueue.dart
diff --git a/pkg/compiler/lib/src/enqueue.dart b/pkg/compiler/lib/src/enqueue.dart
index 66c3260409cc4e9eb0ae0ee233be405217f13ee1..f014beae820102dbcba8bc45604cfa1975d27318 100644
--- a/pkg/compiler/lib/src/enqueue.dart
+++ b/pkg/compiler/lib/src/enqueue.dart
@@ -85,7 +85,6 @@ abstract class Enqueuer {
void registerStaticUse(StaticUse staticUse);
void registerStaticUseInternal(StaticUse staticUse);
void registerDynamicUse(DynamicUse dynamicUse);
- void registerTypeUse(TypeUse typeUse);
/// Returns [:true:] if this enqueuer is the resolution enqueuer.
bool get isResolutionQueue;
@@ -455,7 +454,7 @@ class ResolutionEnqueuer extends Enqueuer {
break;
case StaticUseKind.CONSTRUCTOR_INVOKE:
case StaticUseKind.CONST_CONSTRUCTOR_INVOKE:
- registerTypeUse(new TypeUse.instantiation(staticUse.type));
+ _registerTypeUse(new TypeUse.instantiation(staticUse.type));
break;
case StaticUseKind.DIRECT_INVOKE:
invariant(
@@ -467,7 +466,7 @@ class ResolutionEnqueuer extends Enqueuer {
}
}
- void registerTypeUse(TypeUse typeUse) {
+ void _registerTypeUse(TypeUse typeUse) {
DartType type = typeUse.type;
switch (typeUse.kind) {
case TypeUseKind.INSTANTIATION:
@@ -743,7 +742,7 @@ class TreeShakingEnqueuerStrategy implements EnqueuerStrategy {
}
class _EnqueuerImpactVisitor implements WorldImpactVisitor {
- final Enqueuer enqueuer;
+ final ResolutionEnqueuer enqueuer;
_EnqueuerImpactVisitor(this.enqueuer);
@@ -759,7 +758,7 @@ class _EnqueuerImpactVisitor implements WorldImpactVisitor {
@override
void visitTypeUse(TypeUse typeUse) {
- enqueuer.registerTypeUse(typeUse);
+ enqueuer._registerTypeUse(typeUse);
}
}
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698