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

Unified Diff: runtime/vm/object.h

Issue 1747073002: Make type canonicalization thread safe (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Factor out lookup code Created 4 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
« no previous file with comments | « runtime/vm/isolate.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
diff --git a/runtime/vm/object.h b/runtime/vm/object.h
index 7c20cae3d325d3e57d4bb0243fcd842d0a51f9ab..8fafabc0eff3d3ac9578b46d4377e64f24ea382b 100644
--- a/runtime/vm/object.h
+++ b/runtime/vm/object.h
@@ -1488,6 +1488,12 @@ class Class : public Object {
TrailPtr bound_trail,
Heap::Space space);
+ // Returns AbstractType::null() if type not found.
+ RawAbstractType* LookupCanonicalType(Zone* zone,
+ const AbstractType& type,
+ intptr_t* index) const;
+
+ // Returns canonical type. Thread safe.
RawAbstractType* LookupOrAddCanonicalType(const AbstractType& type,
intptr_t start_index) const;
« no previous file with comments | « runtime/vm/isolate.cc ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698