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

Unified Diff: runtime/vm/object.h

Issue 184653003: Support displaying of types in the observatory (back-end only for now): (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
Index: runtime/vm/object.h
===================================================================
--- runtime/vm/object.h (revision 33387)
+++ runtime/vm/object.h (working copy)
@@ -934,6 +934,10 @@
void InsertCanonicalConstant(intptr_t index, const Instance& constant) const;
+ intptr_t NumCanonicalTypes() const;
+ intptr_t FindCanonicalTypeIndex(const Type& needle) const;
+ RawType* CanonicalTypeFromIndex(intptr_t idx) const;
+
static intptr_t InstanceSize() {
return RoundedAllocationSize(sizeof(RawClass));
}
@@ -1328,6 +1332,12 @@
const TypeArguments& instantiator_type_arguments,
Error* bound_error) const;
+ // Return true if this type argument vector has cached instantiations.
+ bool HasInstantiations() const;
+
+ // Return the number of cached instantiations for this type argument vector.
+ intptr_t NumInstantiations() const;
+
static intptr_t instantiations_offset() {
return OFFSET_OF(RawTypeArguments, instantiations_);
}

Powered by Google App Engine
This is Rietveld 408576698