Overview
Comment: | Check for ASM lookup at compile time.
Checking at configure time can potentially break universal builds. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
a4f1bd6c086bc3def6f0fee2d35f2be1 |
User & Date: | js on 2013-07-08 15:43:56 |
Other Links: | manifest | tags |
Context
2013-07-08
| ||
16:00 | Add a define to indicate forwarding stret is safe. check-in: b63feee32d user: js tags: trunk | |
15:43 | Check for ASM lookup at compile time. check-in: a4f1bd6c08 user: js tags: trunk | |
15:30 | Check for forwarding at compile time. check-in: bbabe17c4f user: js tags: trunk | |
Changes
Modified configure.ac from [c60772ba54] to [ee43b4e13c].
︙ | |||
228 229 230 231 232 233 234 | 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | fi if test x"$enable_static" = x"yes" \ -o x"$enable_shared" = x"no"; then AC_SUBST(RUNTIME_A, "runtime.a") AC_SUBST(RUNTIME_RUNTIME_A, "runtime/runtime.a") fi |
︙ |
Modified extra.mk.in from [c7fdab5546] to [6e5450bfa8].
︙ | |||
16 17 18 19 20 21 22 | 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | - | EXCEPTIONS_A = @EXCEPTIONS_A@ EXCEPTIONS_EXCEPTIONS_A = @EXCEPTIONS_EXCEPTIONS_A@ EXCEPTIONS_EXCEPTIONS_LIB_A = @EXCEPTIONS_EXCEPTIONS_LIB_A@ EXCEPTIONS_LIB_A = @EXCEPTIONS_LIB_A@ FOUNDATION_COMPAT_M = @FOUNDATION_COMPAT_M@ INSTANCE_M = @INSTANCE_M@ LIBOBJFW_DEP = @LIBOBJFW_DEP@ |
︙ |
Modified src/runtime/Makefile from [a83e963f98] to [d1091e58a3].
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | - + | include ../../extra.mk STATIC_PIC_LIB_NOINST = ${RUNTIME_LIB_A} STATIC_LIB_NOINST = ${RUNTIME_A} SRCS = arc.m \ category.m \ class.m \ exception.m \ hashtable.m \ init.m \ lookup.m \ |
︙ |
Added src/runtime/lookup-asm.S version [73b288d188].
|
Modified src/runtime/runtime-private.h from [291ac1241b] to [630ce5911a].
︙ | |||
169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 | 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 | + + + + + + + + + + + + + | #else uint8_t i = idx >> 8; uint8_t j = idx; return (void*)s->buckets[i]->buckets[j]; #endif } #if defined(__ELF__) # if defined(__amd64__) || defined(__x86_64__) || defined(__i386__) || \ defined(__ppc__) || defined(__PPC__) || defined(__arm__) || defined(__ARM__) # define OF_ASM_LOOKUP # elif defined(__mips) && __mips < 64 # define OF_ASM_LOOKUP # endif #elif defined(__MACH__) # if defined(__amd64__) || defined(__x86_64__) # define OF_ASM_LOOKUP # endif #endif #define OBJC_ERROR(...) \ { \ fprintf(stderr, "[objc @ " __FILE__ ":%d] ", __LINE__); \ fprintf(stderr, __VA_ARGS__); \ fputs("\n", stderr); \ abort(); \ } |