[K/N][runtime] Used internal isInstance

This commit is contained in:
Igor Chevdar
2023-05-19 17:49:46 +03:00
committed by Space Team
parent d1a3752626
commit 55632f5df2
10 changed files with 29 additions and 13 deletions
@@ -273,6 +273,10 @@ RUNTIME_USED RUNTIME_WEAK int32_t Konan_DebugIsArray(KRef obj) {
return impl(obj);
}
RUNTIME_USED RUNTIME_WEAK int32_t Konan_DebugIsInstance(KRef obj, const TypeInfo* typeInfo) {
return IsInstanceInternal(obj, typeInfo);
}
RUNTIME_USED RUNTIME_WEAK int32_t Konan_DebugGetFieldCount(KRef obj) {
auto* impl = getImpl<int32_t (*)(KRef)>(obj, DO_DebugGetFieldCount);
if (impl == nullptr) return 0;