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

Unified Diff: runtime/vm/object.h

Issue 203443012: Fix canonicalization of types. (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
« no previous file with comments | « runtime/vm/isolate.h ('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 34127)
+++ runtime/vm/object.h (working copy)
@@ -943,6 +943,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));
}
@@ -1337,6 +1341,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_);
}
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698