Lines Matching refs:chain
424 tree ptype, decls, *chain = NULL; in build_v1_class_template() local
430 "isa", &chain); in build_v1_class_template()
434 "super_class", &chain); in build_v1_class_template()
437 add_field_decl (string_type_node, "name", &chain); in build_v1_class_template()
440 add_field_decl (long_integer_type_node, "version", &chain); in build_v1_class_template()
443 add_field_decl (long_integer_type_node, "info", &chain); in build_v1_class_template()
446 add_field_decl (long_integer_type_node, "instance_size", &chain); in build_v1_class_template()
449 add_field_decl (objc_ivar_list_ptr,"ivars", &chain); in build_v1_class_template()
452 add_field_decl (objc_method_list_ptr, "methods", &chain); in build_v1_class_template()
457 add_field_decl (ptype, "cache", &chain); in build_v1_class_template()
463 add_field_decl (ptype, "protocol_list", &chain); in build_v1_class_template()
468 add_field_decl (const_string_type_node, "ivar_layout", &chain); in build_v1_class_template()
473 add_field_decl (ptype, "ext", &chain); in build_v1_class_template()
478 add_field_decl (build_pointer_type (void_type_node), "sel_id", &chain); in build_v1_class_template()
481 &chain); in build_v1_class_template()
503 tree ptype, decls, *chain = NULL; in build_v1_category_template() local
508 decls = add_field_decl (string_type_node, "category_name", &chain); in build_v1_category_template()
511 add_field_decl (string_type_node, "class_name", &chain); in build_v1_category_template()
514 add_field_decl (objc_method_list_ptr, "instance_methods", &chain); in build_v1_category_template()
517 add_field_decl (objc_method_list_ptr, "class_methods", &chain); in build_v1_category_template()
521 add_field_decl (ptype, "protocol_list", &chain); in build_v1_category_template()
525 add_field_decl (integer_type_node, "size", &chain); in build_v1_category_template()
532 add_field_decl (ptype, "instance_properties", &chain); in build_v1_category_template()
557 tree ptype, decls, *chain = NULL; in build_v1_protocol_template() local
570 decls = add_field_decl (ptype, "isa", &chain); in build_v1_protocol_template()
573 add_field_decl (string_type_node, "protocol_name", &chain); in build_v1_protocol_template()
577 add_field_decl (ptype, "protocol_list", &chain); in build_v1_protocol_template()
580 add_field_decl (objc_method_proto_list_ptr, "instance_methods", &chain); in build_v1_protocol_template()
583 add_field_decl (objc_method_proto_list_ptr, "class_methods", &chain); in build_v1_protocol_template()
696 tree *chain; in next_runtime_abi_01_get_class_reference() local
699 for (chain = &cls_ref_chain; *chain; chain = &TREE_CHAIN (*chain)) in next_runtime_abi_01_get_class_reference()
700 if (TREE_VALUE (*chain) == ident) in next_runtime_abi_01_get_class_reference()
702 if (! TREE_PURPOSE (*chain)) in next_runtime_abi_01_get_class_reference()
703 TREE_PURPOSE (*chain) = build_class_reference_decl (); in next_runtime_abi_01_get_class_reference()
705 return TREE_PURPOSE (*chain); in next_runtime_abi_01_get_class_reference()
709 *chain = tree_cons (decl, ident, NULL_TREE); in next_runtime_abi_01_get_class_reference()
760 tree chain = cls_ref_chain ; in next_runtime_abi_01_receiver_is_class_object() local
762 for (; chain; chain = TREE_CHAIN (chain)) in next_runtime_abi_01_receiver_is_class_object()
763 if (TREE_PURPOSE (chain) == receiver) in next_runtime_abi_01_receiver_is_class_object()
764 return TREE_VALUE (chain); in next_runtime_abi_01_receiver_is_class_object()
793 tree *chain = &sel_ref_chain; in next_runtime_abi_01_build_selector_reference() local
796 while (*chain) in next_runtime_abi_01_build_selector_reference()
798 if (TREE_VALUE (*chain) == ident) in next_runtime_abi_01_build_selector_reference()
799 return TREE_PURPOSE (*chain); in next_runtime_abi_01_build_selector_reference()
801 chain = &TREE_CHAIN (*chain); in next_runtime_abi_01_build_selector_reference()
806 *chain = tree_cons (expr, ident, NULL_TREE); in next_runtime_abi_01_build_selector_reference()
1051 tree decls, *chain = NULL; in build_v1_property_template() local
1055 decls = add_field_decl (string_type_node, "name", &chain); in build_v1_property_template()
1058 add_field_decl (string_type_node, "attribute", &chain); in build_v1_property_template()
1080 tree decls, *chain = NULL; in build_v1_objc_protocol_extension_template() local
1086 decls = add_field_decl (integer_type_node, "size", &chain); in build_v1_objc_protocol_extension_template()
1089 add_field_decl (objc_method_list_ptr, "optional_instance_methods", &chain); in build_v1_objc_protocol_extension_template()
1092 add_field_decl (objc_method_list_ptr, "optional_class_methods", &chain); in build_v1_objc_protocol_extension_template()
1095 add_field_decl (objc_prop_list_ptr, "instance_properties", &chain); in build_v1_objc_protocol_extension_template()
1114 tree ptrt, decls, *chain = NULL; in build_objc_class_ext_template() local
1119 decls = add_field_decl (integer_type_node, "size", &chain); in build_objc_class_ext_template()
1122 add_field_decl (const_string_type_node, "weak_ivar_layout", &chain); in build_objc_class_ext_template()
1127 add_field_decl (ptrt, "properties", &chain); in build_objc_class_ext_template()
1146 generate_v1_meth_descriptor_table (tree chain, tree protocol, in generate_v1_meth_descriptor_table() argument
1154 if (!chain || !prefix) in generate_v1_meth_descriptor_table()
1160 size = list_length (chain); in generate_v1_meth_descriptor_table()
1172 chain); in generate_v1_meth_descriptor_table()
1257 tree array_type, decls, *chain = NULL; in build_v1_property_list_template() local
1263 decls = add_field_decl (integer_type_node, "entsize", &chain); in build_v1_property_list_template()
1266 add_field_decl (integer_type_node, "prop_count", &chain); in build_v1_property_list_template()
1270 add_field_decl (array_type, "prop_list", &chain); in build_v1_property_list_template()
1662 generate_dispatch_table (tree chain, const char *name, tree attr) in generate_dispatch_table() argument
1668 if (!chain || !name || !(size = list_length (chain))) in generate_dispatch_table()
1676 initlist = build_dispatch_table_initializer (objc_method_template, chain); in generate_dispatch_table()
1966 generate_ivars_list (tree chain, const char *name, tree attr) in generate_ivars_list() argument
1972 if (!chain) in generate_ivars_list()
1978 size = ivar_list_length (chain); in generate_ivars_list()
1982 initlist = build_ivar_list_initializer (objc_ivar_template, chain); in generate_ivars_list()
2008 tree chain, inst_ivars = NULL_TREE, class_ivars = NULL_TREE; in generate_v1_class_structs() local
2081 && (chain = TYPE_FIELDS (objc_class_template))) in generate_v1_class_structs()
2085 class_ivars = generate_ivars_list (chain, buf, meta_clac_vars); in generate_v1_class_structs()
2113 if ((chain = CLASS_IVARS (impent->imp_template))) in generate_v1_class_structs()
2117 inst_ivars = generate_ivars_list (chain, buf, meta_clai_vars); in generate_v1_class_structs()
2189 tree fields, *chain = NULL; in build_objc_symtab_template() local
2194 fields = add_field_decl (long_integer_type_node, "sel_ref_cnt", &chain); in build_objc_symtab_template()
2197 add_field_decl (build_pointer_type (objc_selector_type), "refs", &chain); in build_objc_symtab_template()
2200 add_field_decl (short_integer_type_node, "cls_def_cnt", &chain); in build_objc_symtab_template()
2203 add_field_decl (short_integer_type_node, "cat_def_cnt", &chain); in build_objc_symtab_template()
2211 add_field_decl (array_type, "defs", &chain); in build_objc_symtab_template()
2282 handle_next_class_ref (tree chain ATTRIBUTE_UNUSED) in handle_next_class_ref()
2286 const char *name = IDENTIFIER_POINTER (TREE_VALUE (chain)); in handle_next_class_ref()
2319 generate_classref_translation_entry (tree chain) in generate_classref_translation_entry() argument
2323 decl = TREE_PURPOSE (chain); in generate_classref_translation_entry()
2326 expr = add_objc_string (TREE_VALUE (chain), class_names); in generate_classref_translation_entry()
2341 tree chain, attr; in objc_generate_v1_next_metadata() local
2390 for (chain = cls_ref_chain; chain; chain = TREE_CHAIN (chain)) in objc_generate_v1_next_metadata()
2392 handle_next_class_ref (chain); in objc_generate_v1_next_metadata()
2393 if (TREE_PURPOSE (chain)) in objc_generate_v1_next_metadata()
2394 generate_classref_translation_entry (chain); in objc_generate_v1_next_metadata()
2425 tree decls, temp_type, *chain = NULL; in build_next_objc_exception_stuff() local
2433 decls = add_field_decl (temp_type, "buf", &chain); in build_next_objc_exception_stuff()
2438 add_field_decl (temp_type, "pointers", &chain); in build_next_objc_exception_stuff()