Overview
Comment: | Make 16 bit selector UIDs the default. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
511a372fb8d2fdb3ba812c6bbc1b7c74 |
User & Date: | js on 2012-12-28 02:46:57 |
Other Links: | manifest | tags |
Context
2012-12-29
| ||
14:29 | OFXMLParser: OFMutableString -> OFString. check-in: 036c487137 user: js tags: trunk | |
2012-12-28
| ||
02:46 | Make 16 bit selector UIDs the default. check-in: 511a372fb8 user: js tags: trunk | |
2012-12-27
| ||
11:21 | OFHTTPServer: Pass errors from listening socket. check-in: df7b88405a user: js tags: trunk | |
Changes
Modified configure.ac from [96cf137383] to [8917dc30b2].
︙ | |||
112 113 114 115 116 117 118 | 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | - - - + + + | ]) objc_runtime="ObjFW runtime" AC_CHECK_HEADER(objc/objc.h) AC_MSG_CHECKING(which Objective C runtime to use) AC_ARG_ENABLE(runtime, AS_HELP_STRING([--enable-runtime], [use the included runtime])) |
︙ | |||
252 253 254 255 256 257 258 | 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 | - - - + + + | #endif ], [ AC_SUBST(LOOKUP_S, lookup-arm-elf.S) AC_DEFINE(OF_ASM_LOOKUP, 1, [Whether to use assembly for lookup]) ]) |
︙ |
Modified src/runtime/lookup-amd64-elf.S from [4f4b98be14] to [3207591b6d].
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | - + | movq (%rdi), %r8 movq 64(%r8), %r8 lookup: movq (%rsi), %rax movzbl %ah, %ecx movzbl %al, %edx |
︙ |
Modified src/runtime/lookup-amd64-macho.S from [09cb0dc88d] to [5865aebdca].
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | - + | movq (%rdi), %r8 movq 64(%r8), %r8 lookup: movq (%rsi), %rax movzbl %ah, %ecx movzbl %al, %edx |
︙ |
Modified src/runtime/lookup-arm-elf.S from [9640c55b02] to [ed5e108713].
︙ | |||
24 25 26 27 28 29 30 | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | - + | cmp r0, #0 beq ret_nil ldr r2, [r0, #0] ldr r2, [r2, #32] lookup: |
︙ |
Modified src/runtime/lookup-ppc-elf.S from [c03cad3b43] to [50cd1a1f6d].
︙ | |||
24 25 26 27 28 29 30 | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 | - + - + - + | cmpwi %r3, 0 beq- ret_nil lwz %r5, 0(%r3) lwz %r5, 32(%r5) lookup: |
︙ |
Modified src/runtime/lookup-x86-elf.S from [91527592d6] to [8659bceb2f].
︙ | |||
27 28 29 30 31 32 33 | 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | - + | movl (%edx), %edx movl 32(%edx), %edx lookup: movl 8(%esp), %eax |
︙ |
Modified src/runtime/runtime-private.h from [8b51aa0f01] to [8504443dc5].
︙ | |||
102 103 104 105 106 107 108 | 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | - + | struct objc_hashtable_bucket **data; }; struct objc_sparsearray { struct objc_sparsearray_level2 *buckets[256]; }; |
︙ | |||
158 159 160 161 162 163 164 | 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | - + | extern void objc_global_mutex_lock(void); extern void objc_global_mutex_unlock(void); extern void objc_global_mutex_free(void); static inline void* objc_sparsearray_get(const struct objc_sparsearray *s, uint32_t idx) { |
︙ |
Modified src/runtime/selector.m from [80ce19c002] to [2845ace0ff].
︙ | |||
19 20 21 22 23 24 25 | 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | - + | #include <stdio.h> #include <stdlib.h> #include <string.h> #import "runtime.h" #import "runtime-private.h" |
︙ |
Modified src/runtime/sparsearray.m from [ac1c630c4c] to [08f66117d0].
︙ | |||
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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | - + - + - + - + | #include <stdio.h> #include <stdlib.h> #import "runtime.h" #import "runtime-private.h" static struct objc_sparsearray_level2 *empty_level2 = NULL; |
︙ | |||
81 82 83 84 85 86 87 | 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | - + - + | } void objc_sparsearray_copy(struct objc_sparsearray *dst, struct objc_sparsearray *src) { uint_fast16_t i, j; |
︙ | |||
127 128 129 130 131 132 133 | 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 | - + | #endif } } void objc_sparsearray_set(struct objc_sparsearray *s, uint32_t idx, const void *obj) { |
︙ | |||
149 150 151 152 153 154 155 | 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | - + - + | if (t == NULL) OBJC_ERROR("Not enough memory to insert into sparse " "array!"); t->empty = NO; for (l = 0; l < 256; l++) |
︙ | |||
187 188 189 190 191 192 193 | 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | - + - + - + - + | #endif } void objc_sparsearray_free(struct objc_sparsearray *s) { uint_fast16_t i; |