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

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

Issue 1394793004: Move WorldImpact to universe/world_impact.dart (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
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/js_backend/js_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 7b15c2c77d9949f0418584f8810d252e041f6ceb..210b7d9b03f6b1b648dd3a3660cc5396c6a7b048 100644
--- a/pkg/compiler/lib/src/enqueue.dart
+++ b/pkg/compiler/lib/src/enqueue.dart
@@ -51,6 +51,8 @@ import 'types/types.dart' show
import 'universe/selector.dart' show
Selector;
import 'universe/universe.dart';
+import 'universe/world_impact.dart' show
+ WorldImpact;
import 'util/util.dart' show
Link,
Setlet;
@@ -86,61 +88,6 @@ class EnqueueTask extends CompilerTask {
}
}
-class WorldImpact {
- const WorldImpact();
-
- Iterable<UniverseSelector> get dynamicInvocations =>
- const <UniverseSelector>[];
- Iterable<UniverseSelector> get dynamicGetters => const <UniverseSelector>[];
- Iterable<UniverseSelector> get dynamicSetters => const <UniverseSelector>[];
-
- // TODO(johnniwinther): Split this into more precise subsets.
- Iterable<Element> get staticUses => const <Element>[];
-
- // TODO(johnniwinther): Replace this by called constructors with type
- // arguments.
- Iterable<InterfaceType> get instantiatedTypes => const <InterfaceType>[];
-
- // TODO(johnniwinther): Collect checked types for checked mode separately to
- // support serialization.
- Iterable<DartType> get isChecks => const <DartType>[];
-
- Iterable<DartType> get checkedModeChecks => const <DartType>[];
-
- Iterable<DartType> get asCasts => const <DartType>[];
-
- 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 {
final String name;
final Compiler compiler; // TODO(ahe): Remove this dependency.
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/js_backend/js_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698