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

Unified Diff: sdk/lib/_internal/compiler/implementation/enqueue.dart

Issue 12207081: Add a type kind to TypedSelector. A typed selector can either be (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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: sdk/lib/_internal/compiler/implementation/enqueue.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/enqueue.dart (revision 18306)
+++ sdk/lib/_internal/compiler/implementation/enqueue.dart (working copy)
@@ -354,9 +354,10 @@
DartType type) {
task.measure(() {
Selector getter = new Selector.getter(getterName, library);
- registerNewSelector(getterName,
- new TypedSelector(type, getter),
- universe.fieldGetters);
+ registerNewSelector(
+ getterName,
+ new TypedSelector.subclass(type, getter),
kasperl 2013/02/11 13:11:50 Aren't we throwing away information at this point?
ngeoffray 2013/02/11 14:20:29 Actually, we should just take an element. Done.
+ universe.fieldGetters);
});
}
@@ -365,9 +366,10 @@
DartType type) {
task.measure(() {
Selector setter = new Selector.setter(setterName, library);
- registerNewSelector(setterName,
- new TypedSelector(type, setter),
- universe.fieldSetters);
+ registerNewSelector(
+ setterName,
+ new TypedSelector.subclass(type, setter),
+ universe.fieldSetters);
});
}

Powered by Google App Engine
This is Rietveld 408576698