[K/N] Add ability to get base object from extra data

^KT-49325
This commit is contained in:
Pavel Kunyavskiy
2021-10-18 14:32:48 +03:00
committed by Space
parent da3e31cd3a
commit ae64af09fb
15 changed files with 118 additions and 51 deletions
+3 -1
View File
@@ -68,7 +68,9 @@ struct ObjHeader {
MetaObjHeader* meta_object_or_null() const noexcept { return AsMetaObject(typeInfoOrMeta_); }
ALWAYS_INLINE ObjHeader** GetWeakCounterLocation();
ALWAYS_INLINE ObjHeader* GetWeakCounter();
ALWAYS_INLINE ObjHeader* GetOrSetWeakCounter(ObjHeader* counter);
#ifdef KONAN_OBJC_INTEROP
ALWAYS_INLINE void* GetAssociatedObject();