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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.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/common/registry.dart ('k') | pkg/compiler/lib/src/dart_backend/dart_backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_backend/backend.dart
diff --git a/pkg/compiler/lib/src/dart_backend/backend.dart b/pkg/compiler/lib/src/dart_backend/backend.dart
index 0e2b83cb945fef4db7a190f831fb537e037ceabf..34f08761d1e37fb6501f70ab72931a03f2fa80eb 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -137,13 +137,13 @@ class DartBackend extends Backend {
}
// Enqueue the methods that the VM might invoke on user objects because
// we don't trust the resolution to always get these included.
- world.registerDynamicUse(new UniverseSelector(Selectors.toString_, null));
+ world.registerDynamicUse(new DynamicUse(Selectors.toString_, null));
world.registerDynamicUse(
- new UniverseSelector(Selectors.hashCode_, null));
+ new DynamicUse(Selectors.hashCode_, null));
world.registerDynamicUse(
- new UniverseSelector(new Selector.binaryOperator('=='), null));
+ new DynamicUse(new Selector.binaryOperator('=='), null));
world.registerDynamicUse(
- new UniverseSelector(Selectors.compareTo, null));
+ new DynamicUse(Selectors.compareTo, null));
}
WorldImpact codegen(CodegenWorkItem work) {
@@ -274,7 +274,7 @@ class DartBackend extends Backend {
/// of types defined in the platform libraries.
void registerPlatformMembers(
InterfaceType type,
- {void registerUse(UniverseSelector selector)}) {
+ {void registerUse(DynamicUse dynamicUse)}) {
// Without patching, dart2dart has no way of performing sound tree-shaking
// in face external functions. Therefore we employ another scheme:
@@ -327,7 +327,7 @@ class DartBackend extends Backend {
element.computeType(resolution);
Selector selector = new Selector.fromElement(element);
registerUse(
- new UniverseSelector(selector, null));
+ new DynamicUse(selector, null));
});
}
}
« no previous file with comments | « pkg/compiler/lib/src/common/registry.dart ('k') | pkg/compiler/lib/src/dart_backend/dart_backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698