1. 数据结构
(1) id <=> objc_object
[isa_t
, ]
(2) Class <=> objc_class
(继承objc_object
) [1.Class superClass
, 2.cache_t cache
, 3.class_data_bits_t bits
]
(3) isa
指针
- 指针型isa, isa的值代表Class的地址
- 非指针型isa, isa的值的部分代表Class的地址
(4) isa
指向
- 对象实例的isa指向 类对象
- 类的isa指向 原类对象
(5) cache_t
- 用于快速查找方法执行函数
- 是可增量扩展的哈希表结构
- 是局部性原理的最佳应用