I'm looking for all code that uses the is-Swift bit in class metadata.

Uses that I know of:
* Compiler-generated class metadata (addClassDataPointer() in GenMeta.cpp)
* Runtime metadata checks (isTypeMetadata() inMetadata.h)
* Stuff in lldb and other debugging tools
* Stuff in the Objective-C runtime

Is there any other code that reads or writes this bit? Does compiler-generated 
code ever do so? Or maybe something in reflection that I haven't found?

(Backstory: The forthcoming stable Swift ABI will need to use a different bit 
to avoid collisions with existing pre-stable-ABI Swift apps. We will need to 
find all of these locations and change them.)


-- 
Greg Parker     [email protected] <mailto:[email protected]>     Runtime 
Wrangler


_______________________________________________
swift-dev mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-dev

Reply via email to