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

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

Issue 1299413002: Move common identifiers, names and selectors to a separate library. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. 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
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/elements/common.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 7e9773175e3aa97c641713ab9894da7b81eba313..3f6d425d8a58521c47d1d908f38f7fc923472c41 100644
--- a/pkg/compiler/lib/src/dart_backend/backend.dart
+++ b/pkg/compiler/lib/src/dart_backend/backend.dart
@@ -131,14 +131,14 @@ 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("toString", null, 0), null));
- world.registerInvokedGetter(
- new UniverseSelector(new Selector.getter("hashCode", null), null));
+ 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(new Selector.binaryOperator("=="), null));
- world.registerInvocation(
- new UniverseSelector(new Selector.call("compareTo", null, 1), null));
+ world.registerInvocation(new UniverseSelector(
+ new Selector.call(const PublicName("compareTo"), 1), null));
}
WorldImpact codegen(CodegenWorkItem work) => const WorldImpact();
« no previous file with comments | « pkg/compiler/lib/src/cps_ir/type_propagation.dart ('k') | pkg/compiler/lib/src/elements/common.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698