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

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

Issue 1408383006: Rename UniverseSelector to DynamicUse and move it to use.dart (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 | « pkg/compiler/lib/src/dart_backend/dart_backend.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dump_info.dart
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
index 0d305d15e150981f220a143669387dd2fca19b51..0b9e18baede1115127300ef623c492ed2e337edf 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -26,8 +26,8 @@ import 'js_backend/js_backend.dart' show
import 'js_emitter/full_emitter/emitter.dart' as full show
Emitter;
import 'js/js.dart' as jsAst;
-import 'universe/universe.dart' show
- UniverseSelector;
+import 'universe/use.dart' show
+ DynamicUse;
import 'info/send_info.dart' show collectSendMeasurements;
class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
@@ -378,7 +378,7 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
// pretty-printed contents.
final Map<jsAst.Node, int> _nodeToSize = <jsAst.Node, int>{};
- final Map<Element, Set<UniverseSelector>> selectorsFromElement = {};
+ final Map<Element, Set<DynamicUse>> selectorsFromElement = {};
final Map<Element, int> inlineCount = <Element, int>{};
// A mapping from an element to a list of elements that are
// inlined inside of it.
@@ -400,10 +400,10 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
* Registers that a function uses a selector in the
* function body
*/
- void elementUsesSelector(Element element, UniverseSelector selector) {
+ void elementUsesSelector(Element element, DynamicUse selector) {
if (compiler.dumpInfo) {
selectorsFromElement
- .putIfAbsent(element, () => new Set<UniverseSelector>())
+ .putIfAbsent(element, () => new Set<DynamicUse>())
.add(selector);
}
}
@@ -422,7 +422,7 @@ class DumpInfoTask extends CompilerTask implements InfoReporter {
if (!selectorsFromElement.containsKey(element)) {
return const <Selection>[];
} else {
- return selectorsFromElement[element].expand((UniverseSelector selector) {
+ return selectorsFromElement[element].expand((DynamicUse selector) {
return compiler.world.allFunctions
.filter(selector.selector, selector.mask)
.map((element) {
« no previous file with comments | « pkg/compiler/lib/src/dart_backend/dart_backend.dart ('k') | pkg/compiler/lib/src/enqueue.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698