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

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

Issue 12528008: Implement CHA through type mask and TypedSelector in the simple type inferrer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 9 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 | « sdk/lib/_internal/compiler/implementation/universe/universe.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/world.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/world.dart (revision 19670)
+++ sdk/lib/_internal/compiler/implementation/world.dart (working copy)
@@ -161,6 +161,14 @@
return uses != null && !uses.isEmpty;
}
+ bool hasAnySubclass(ClassElement cls) {
+ return subclasses[cls] != null && !subclasses[cls].isEmpty;
kasperl 2013/03/08 11:39:30 Maybe avoid looking up in the hash map twice?
ngeoffray 2013/03/08 12:54:27 Done.
+ }
+
+ bool hasAnySubtype(ClassElement cls) {
+ return subtypes[cls] != null && !subtypes[cls].isEmpty;
kasperl 2013/03/08 11:39:30 Ditto.
ngeoffray 2013/03/08 12:54:27 Done.
+ }
+
void registerRtiDependency(Element element, Element dependency) {
// We're not dealing with typedef for now.
if (!element.isClass() || !dependency.isClass()) return;
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/universe/universe.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698