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

Unified Diff: lib/compiler/implementation/compiler.dart

Issue 10191016: Introduce typed selectors for getters and setters also for better tree shaking. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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: lib/compiler/implementation/compiler.dart
===================================================================
--- lib/compiler/implementation/compiler.dart (revision 6933)
+++ lib/compiler/implementation/compiler.dart (working copy)
@@ -185,7 +185,7 @@
if (enabledNoSuchMethod) return;
if (element.enclosingElement == objectClass) return;
enabledNoSuchMethod = true;
- enqueuer.registerInvocation(NO_SUCH_METHOD, new Invocation(2));
+ enqueuer.registerInvocation(NO_SUCH_METHOD, new Selector.invocation(2));
}
void enableIsolateSupport(LibraryElement element) {
@@ -389,12 +389,12 @@
addToWorkList(element);
}
- void registerDynamicGetter(SourceString methodName) {
- enqueuer.registerGetter(methodName);
+ void registerDynamicGetter(SourceString methodName, Selector selector) {
+ enqueuer.registerGetter(methodName, selector);
}
- void registerDynamicSetter(SourceString methodName) {
- enqueuer.registerSetter(methodName);
+ void registerDynamicSetter(SourceString methodName, Selector selector) {
+ enqueuer.registerSetter(methodName, selector);
}
void registerInstantiatedClass(ClassElement element) {
« no previous file with comments | « no previous file | lib/compiler/implementation/elements/elements.dart » ('j') | lib/compiler/implementation/universe.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698