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

Unified Diff: runtime/vm/object.h

Issue 10828399: Implement class hierarchy analysis in the VM. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | « runtime/vm/class_table_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 11005)
+++ runtime/vm/object.h (working copy)
@@ -553,6 +553,13 @@
return OFFSET_OF(RawClass, interfaces_);
}
+ // Returns the list of classes having this class as direct superclass.
+ RawGrowableObjectArray* direct_subclasses() const {
+ return raw_ptr()->direct_subclasses_;
+ }
+ void AddDirectSubclass(const Class& subclass) const;
+ // TODO(regis): Implement RemoveDirectSubclass for class unloading support.
+
// Check if this class represents the class of null.
bool IsNullClass() const { return raw() == Object::null_class(); }
« no previous file with comments | « runtime/vm/class_table_test.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698