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

Unified Diff: sdk/lib/_internal/compiler/implementation/world.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/world.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/world.dart (revision 18306)
+++ sdk/lib/_internal/compiler/implementation/world.dart (working copy)
@@ -91,10 +91,6 @@
});
}
- bool needsRti(ClassElement cls) {
- return classesNeedingRti.contains(cls) || compiler.enabledRuntimeType;
- }
-
void registerMixinUse(MixinApplicationElement mixinApplication,
ClassElement mixin) {
Set<MixinApplicationElement> users =
@@ -103,6 +99,12 @@
users.add(mixinApplication);
}
+ bool isUsedAsMixin(ClassElement cls) {
+ Set<MixinApplicationElement> uses = mixinUses[cls];
+ return uses != null && !uses.isEmpty;
+ }
+
+
void registerRtiDependency(Element element, Element dependency) {
// We're not dealing with typedef for now.
if (!element.isClass() || !dependency.isClass()) return;
@@ -111,6 +113,10 @@
classes.add(dependency);
}
+ bool needsRti(ClassElement cls) {
+ return classesNeedingRti.contains(cls) || compiler.enabledRuntimeType;
+ }
+
void recordUserDefinedGetter(Element element) {
assert(element.isGetter());
userDefinedGetters.add(element);
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/universe/universe.dart ('k') | tests/compiler/dart2js/dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698