Lines Matching refs:cro
2805 inline void swapStruct(struct class_ro64_t &cro) { in swapStruct() argument
2806 sys::swapByteOrder(cro.flags); in swapStruct()
2807 sys::swapByteOrder(cro.instanceStart); in swapStruct()
2808 sys::swapByteOrder(cro.instanceSize); in swapStruct()
2809 sys::swapByteOrder(cro.reserved); in swapStruct()
2810 sys::swapByteOrder(cro.ivarLayout); in swapStruct()
2811 sys::swapByteOrder(cro.name); in swapStruct()
2812 sys::swapByteOrder(cro.baseMethods); in swapStruct()
2813 sys::swapByteOrder(cro.baseProtocols); in swapStruct()
2814 sys::swapByteOrder(cro.ivars); in swapStruct()
2815 sys::swapByteOrder(cro.weakIvarLayout); in swapStruct()
2816 sys::swapByteOrder(cro.baseProperties); in swapStruct()
2819 inline void swapStruct(struct class_ro32_t &cro) { in swapStruct() argument
2820 sys::swapByteOrder(cro.flags); in swapStruct()
2821 sys::swapByteOrder(cro.instanceStart); in swapStruct()
2822 sys::swapByteOrder(cro.instanceSize); in swapStruct()
2823 sys::swapByteOrder(cro.ivarLayout); in swapStruct()
2824 sys::swapByteOrder(cro.name); in swapStruct()
2825 sys::swapByteOrder(cro.baseMethods); in swapStruct()
2826 sys::swapByteOrder(cro.baseProtocols); in swapStruct()
2827 sys::swapByteOrder(cro.ivars); in swapStruct()
2828 sys::swapByteOrder(cro.weakIvarLayout); in swapStruct()
2829 sys::swapByteOrder(cro.baseProperties); in swapStruct()
3098 struct class_ro64_t cro; in get_objc2_64bit_class_name() local
3099 memcpy(&cro, r, sizeof(struct class_ro64_t)); in get_objc2_64bit_class_name()
3101 swapStruct(cro); in get_objc2_64bit_class_name()
3102 if (cro.name == 0) in get_objc2_64bit_class_name()
3104 const char *name = get_pointer_64(cro.name, offset, left, S, info); in get_objc2_64bit_class_name()
4225 struct class_ro64_t cro; in print_class_ro64_t() local
4235 memset(&cro, '\0', sizeof(struct class_ro64_t)); in print_class_ro64_t()
4237 memcpy(&cro, r, left); in print_class_ro64_t()
4240 memcpy(&cro, r, sizeof(struct class_ro64_t)); in print_class_ro64_t()
4242 swapStruct(cro); in print_class_ro64_t()
4243 outs() << " flags " << format("0x%" PRIx32, cro.flags); in print_class_ro64_t()
4244 if (cro.flags & RO_META) in print_class_ro64_t()
4246 if (cro.flags & RO_ROOT) in print_class_ro64_t()
4248 if (cro.flags & RO_HAS_CXX_STRUCTORS) in print_class_ro64_t()
4251 outs() << " instanceStart " << cro.instanceStart << "\n"; in print_class_ro64_t()
4252 outs() << " instanceSize " << cro.instanceSize << "\n"; in print_class_ro64_t()
4253 outs() << " reserved " << format("0x%" PRIx32, cro.reserved) in print_class_ro64_t()
4255 outs() << " ivarLayout " << format("0x%" PRIx64, cro.ivarLayout) in print_class_ro64_t()
4257 print_layout_map64(cro.ivarLayout, info); in print_class_ro64_t()
4261 info, n_value, cro.name); in print_class_ro64_t()
4267 if (cro.name != 0) in print_class_ro64_t()
4268 outs() << " + " << format("0x%" PRIx64, cro.name); in print_class_ro64_t()
4270 outs() << format("0x%" PRIx64, cro.name); in print_class_ro64_t()
4271 name = get_pointer_64(cro.name + n_value, xoffset, left, xS, info); in print_class_ro64_t()
4278 S, info, n_value, cro.baseMethods); in print_class_ro64_t()
4284 if (cro.baseMethods != 0) in print_class_ro64_t()
4285 outs() << " + " << format("0x%" PRIx64, cro.baseMethods); in print_class_ro64_t()
4287 outs() << format("0x%" PRIx64, cro.baseMethods); in print_class_ro64_t()
4289 if (cro.baseMethods + n_value != 0) in print_class_ro64_t()
4290 print_method_list64_t(cro.baseMethods + n_value, info, ""); in print_class_ro64_t()
4295 info, n_value, cro.baseProtocols); in print_class_ro64_t()
4301 if (cro.baseProtocols != 0) in print_class_ro64_t()
4302 outs() << " + " << format("0x%" PRIx64, cro.baseProtocols); in print_class_ro64_t()
4304 outs() << format("0x%" PRIx64, cro.baseProtocols); in print_class_ro64_t()
4306 if (cro.baseProtocols + n_value != 0) in print_class_ro64_t()
4307 print_protocol_list64_t(cro.baseProtocols + n_value, info); in print_class_ro64_t()
4311 info, n_value, cro.ivars); in print_class_ro64_t()
4317 if (cro.ivars != 0) in print_class_ro64_t()
4318 outs() << " + " << format("0x%" PRIx64, cro.ivars); in print_class_ro64_t()
4320 outs() << format("0x%" PRIx64, cro.ivars); in print_class_ro64_t()
4322 if (cro.ivars + n_value != 0) in print_class_ro64_t()
4323 print_ivar_list64_t(cro.ivars + n_value, info); in print_class_ro64_t()
4328 info, n_value, cro.weakIvarLayout); in print_class_ro64_t()
4334 if (cro.weakIvarLayout != 0) in print_class_ro64_t()
4335 outs() << " + " << format("0x%" PRIx64, cro.weakIvarLayout); in print_class_ro64_t()
4337 outs() << format("0x%" PRIx64, cro.weakIvarLayout); in print_class_ro64_t()
4339 print_layout_map64(cro.weakIvarLayout + n_value, info); in print_class_ro64_t()
4344 info, n_value, cro.baseProperties); in print_class_ro64_t()
4350 if (cro.baseProperties != 0) in print_class_ro64_t()
4351 outs() << " + " << format("0x%" PRIx64, cro.baseProperties); in print_class_ro64_t()
4353 outs() << format("0x%" PRIx64, cro.baseProperties); in print_class_ro64_t()
4355 if (cro.baseProperties + n_value != 0) in print_class_ro64_t()
4356 print_objc_property_list64(cro.baseProperties + n_value, info); in print_class_ro64_t()
4358 is_meta_class = (cro.flags & RO_META) != 0; in print_class_ro64_t()
4364 struct class_ro32_t cro; in print_class_ro32_t() local
4373 memset(&cro, '\0', sizeof(struct class_ro32_t)); in print_class_ro32_t()
4375 memcpy(&cro, r, left); in print_class_ro32_t()
4378 memcpy(&cro, r, sizeof(struct class_ro32_t)); in print_class_ro32_t()
4380 swapStruct(cro); in print_class_ro32_t()
4381 outs() << " flags " << format("0x%" PRIx32, cro.flags); in print_class_ro32_t()
4382 if (cro.flags & RO_META) in print_class_ro32_t()
4384 if (cro.flags & RO_ROOT) in print_class_ro32_t()
4386 if (cro.flags & RO_HAS_CXX_STRUCTORS) in print_class_ro32_t()
4389 outs() << " instanceStart " << cro.instanceStart << "\n"; in print_class_ro32_t()
4390 outs() << " instanceSize " << cro.instanceSize << "\n"; in print_class_ro32_t()
4391 outs() << " ivarLayout " << format("0x%" PRIx32, cro.ivarLayout) in print_class_ro32_t()
4393 print_layout_map32(cro.ivarLayout, info); in print_class_ro32_t()
4395 outs() << " name " << format("0x%" PRIx32, cro.name); in print_class_ro32_t()
4396 name = get_pointer_32(cro.name, xoffset, left, xS, info); in print_class_ro32_t()
4402 << format("0x%" PRIx32, cro.baseMethods) in print_class_ro32_t()
4404 if (cro.baseMethods != 0) in print_class_ro32_t()
4405 print_method_list32_t(cro.baseMethods, info, ""); in print_class_ro32_t()
4408 << format("0x%" PRIx32, cro.baseProtocols) << "\n"; in print_class_ro32_t()
4409 if (cro.baseProtocols != 0) in print_class_ro32_t()
4410 print_protocol_list32_t(cro.baseProtocols, info); in print_class_ro32_t()
4411 outs() << " ivars " << format("0x%" PRIx32, cro.ivars) in print_class_ro32_t()
4413 if (cro.ivars != 0) in print_class_ro32_t()
4414 print_ivar_list32_t(cro.ivars, info); in print_class_ro32_t()
4416 << format("0x%" PRIx32, cro.weakIvarLayout) << "\n"; in print_class_ro32_t()
4417 print_layout_map32(cro.weakIvarLayout, info); in print_class_ro32_t()
4419 << format("0x%" PRIx32, cro.baseProperties) << "\n"; in print_class_ro32_t()
4420 if (cro.baseProperties != 0) in print_class_ro32_t()
4421 print_objc_property_list32(cro.baseProperties, info); in print_class_ro32_t()
4422 is_meta_class = (cro.flags & RO_META) != 0; in print_class_ro32_t()