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

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

Issue 1394923003: Use WorldImpact for element dependencies in deferred_load (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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
Index: pkg/compiler/lib/src/enqueue.dart
diff --git a/pkg/compiler/lib/src/enqueue.dart b/pkg/compiler/lib/src/enqueue.dart
index a15f0918ae83a2198b31b5ff3ecbd1d1b2a6fe6f..7b15c2c77d9949f0418584f8810d252e041f6ceb 100644
--- a/pkg/compiler/lib/src/enqueue.dart
+++ b/pkg/compiler/lib/src/enqueue.dart
@@ -112,6 +112,33 @@ class WorldImpact {
Iterable<MethodElement> get closurizedFunctions => const <MethodElement>[];
Iterable<LocalFunctionElement> get closures => const <LocalFunctionElement>[];
+
+ Iterable<DartType> get typeLiterals => const <DartType>[];
+
+ String toString() {
+ StringBuffer sb = new StringBuffer();
+
+ void add(String title, Iterable iterable) {
+ if (iterable.isNotEmpty) {
+ sb.write('\n $title:');
+ iterable.forEach((e) => sb.write('\n $e'));
+ }
+ }
+
+ add('dynamic invocations', dynamicInvocations);
+ add('dynamic getters', dynamicGetters);
+ add('dynamic setters', dynamicSetters);
+ add('static uses', staticUses);
+ add('instantiated types', instantiatedTypes);
+ add('is-checks', isChecks);
+ add('checked-mode checks', checkedModeChecks);
+ add('as-casts', asCasts);
+ add('closurized functions', closurizedFunctions);
+ add('closures', closures);
+ add('type literals', typeLiterals);
+
+ return sb.toString();
+ }
}
abstract class Enqueuer {

Powered by Google App Engine
This is Rietveld 408576698