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

Unified Diff: pkg/compiler/lib/src/dart_backend/backend.dart

Issue 1314573002: Use Name instead of Selector in SemanticSendVisitor (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 4 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/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 3f6d425d8a58521c47d1d908f38f7fc923472c41..1fbc6f40e746f6e3ab04a49cbc2e444ceb478416 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -131,14 +131,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.registerInvocation(new UniverseSelector(
- new Selector.call(const PublicName("toString"), 0), null));
- world.registerInvokedGetter(new UniverseSelector(
- new Selector.getter(const PublicName("hashCode")), null));
+ world.registerInvocation(new UniverseSelector(Selectors.toString_, null));
+ world.registerInvokedGetter(
+ new UniverseSelector(Selectors.hashCode_, null));
world.registerInvocation(
- new UniverseSelector(new Selector.binaryOperator("=="), null));
- world.registerInvocation(new UniverseSelector(
- new Selector.call(const PublicName("compareTo"), 1), null));
+ new UniverseSelector(new Selector.binaryOperator('=='), null));
+ world.registerInvocation(
+ new UniverseSelector(Selectors.compareTo, null));
}
WorldImpact codegen(CodegenWorkItem work) => const WorldImpact();

Powered by Google App Engine
This is Rietveld 408576698