Home | History | Annotate | Download | only in libobjc

Lines Matching refs:sel

60 IMP (*__objc_msg_forward) (SEL) = NULL;
61 IMP (*__objc_msg_forward2) (id, SEL) = NULL;
72 static IMP __objc_get_prepared_imp (Class cls,SEL sel);
80 static double __objc_double_forward (id, SEL, ...);
81 static id __objc_word_forward (id, SEL, ...);
88 __objc_block_forward (id, SEL, ...);
89 static struct objc_method * search_for_method_in_hierarchy (Class class, SEL sel);
90 struct objc_method * search_for_method_in_list (struct objc_method_list * list, SEL op);
91 id nil_method (id, SEL);
95 extern IMP __objc_get_forward_imp (id, SEL);
99 __objc_get_forward_imp (id rcv, SEL sel)
108 if ((result = __objc_msg_forward2 (rcv, sel)) != NULL)
114 if ((result = __objc_msg_forward (sel)) != NULL)
121 const char *t = sel->sel_types;
138 static SEL selector_resolveClassMethod = NULL;
139 static SEL selector_resolveInstanceMethod = NULL;
143 meta-class), and 'sel' is the selector that we are trying to
153 __objc_resolve_class_method (Class class, SEL sel)
156 BOOL (*resolveMethodIMP) (id, SEL, SEL);
160 so we just look it up directly. Note that if 'sel' is precisely
163 resolveMethodIMP = (BOOL (*) (id, SEL, SEL))sarray_get_safe
166 if (resolveMethodIMP && resolveMethodIMP ((id)class, selector_resolveClassMethod, sel))
174 return sarray_get_safe (class->class_pointer->dtable, (size_t) sel->sel_id);
182 'sel' is the selector that we are trying to resolve. This must be
192 __objc_resolve_instance_method (Class class, SEL sel)
195 BOOL (*resolveMethodIMP) (id, SEL, SEL);
215 if (resolveMethodIMP && resolveMethodIMP ((id)class, selector_resolveInstanceMethod, sel))
223 return sarray_get_safe (class->dtable, (size_t) sel->sel_id);
245 get_implementation (id receiver, Class class, SEL sel)
268 res = __objc_get_prepared_imp (class, sel);
277 res = get_implementation (receiver, class, sel);
282 res = sarray_get_safe (class->dtable, (size_t) sel->sel_id);
300 res = __objc_resolve_class_method (realClass, sel);
303 res = __objc_resolve_instance_method (class, sel);
306 res = __objc_get_forward_imp (receiver, sel);
314 extern IMP get_imp (Class, SEL);
318 get_imp (Class class, SEL sel)
328 void *res = sarray_get_safe (class->dtable, (size_t) sel->sel_id);
331 res = get_implementation(nil, class, sel);
338 class_getMethodImplementation (Class class_, SEL selector)
361 __objc_responds_to (id object, SEL sel)
389 res = sarray_get_safe (dtable, (size_t) sel->sel_id);
394 class_respondsToSelector (Class class_, SEL selector)
434 objc_msg_lookup (id receiver, SEL op)
457 objc_msg_lookup_super (struct objc_super *super, SEL sel)
460 return get_imp (super->super_class, sel);
509 SEL op = sel_registerName ("initialize");
599 SEL's by the function __objc_register_selectors_from_class. */
617 class_getInstanceMethod (Class class_, SEL selector)
637 class_getClassMethod (Class class_, SEL selector)
659 class_addMethod (Class class_, SEL selector, IMP implementation,
745 class_replaceMethod (Class class_, SEL selector, IMP implementation,
771 search_for_method_in_hierarchy (Class cls, SEL sel)
776 if (! sel_is_mapped (sel))
782 method = search_for_method_in_list (class->methods, sel);
793 search_for_method_in_list (struct objc_method_list * list, SEL op)
826 static retval_t __objc_forward (id object, SEL sel, arglist_t args);
830 __objc_word_forward (id rcv, SEL op, ...)
848 __objc_double_forward (id rcv, SEL op, ...)
862 __objc_block_forward (id rcv, SEL op, ...)
886 __objc_forward (id object, SEL sel, arglist_t args)
889 static SEL frwd_sel = 0; /* !T:SAFE2 */
890 SEL err_sel;
899 return (*imp) (object, frwd_sel, sel, args);
908 return (*imp) (object, err_sel, sel);
914 char msg[256 + strlen ((const char *) sel_getName (sel))
921 object->class_pointer->name, sel_getName (sel));
1129 __objc_get_prepared_imp (Class cls,SEL sel)
1135 assert (sel);
1141 imp = sarray_get_safe (dtable, (size_t) sel->sel_id);