Differences From Artifact [cccd16e367]:
- File
src/runtime/lookup.m
— part of check-in
[3cd9d0ad69]
at
2014-01-05 22:31:44
on branch trunk
— Change behaviour of class_getMethodImplementation.
It behaves like in the Apple runtime now. (user: js, size: 4592) [annotate] [blame] [check-ins using]
To Artifact [c4fa11142c]:
- File
src/runtime/lookup.m
— part of check-in
[1ebb9eb7b3]
at
2014-05-15 15:32:35
on branch trunk
— Multiple dtable / sparse array improvements
* dtable.m is now the old sparse array, using IMP as type for values and
thus not violating the C standard anymore (functions may not be stored
in void*)
* New sparsearray.m which can work with any size, based on the sparse
array from the fast path of class.m
* Fast path of class.m now uses the new sparsearray.m (user: js, size: 4574) [annotate] [blame] [check-ins using]
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | - - + + - + | #include <stdio.h> #include <stdlib.h> #import "runtime.h" #import "runtime-private.h" #import "macros.h" |
︙ | |||
85 86 87 88 89 90 91 | 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 | - + | class_getName(object_getClass(obj)), sel_getName(sel)); return lookup(obj, sel); } } |
︙ | |||
107 108 109 110 111 112 113 | 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | - + - + - + - - + | objc_method_not_found_stret(id obj, SEL sel) { return common_method_not_found(obj, sel, objc_msg_lookup_stret, forward_handler_stret); } void |
︙ | |||
167 168 169 170 171 172 173 | 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | - + - + | IMP (*not_found)(id, SEL)) { IMP imp; if (super->self == nil) return (IMP)nil_method; |
︙ |