Differences From Artifact [213672a51c]:
- File src/runtime/asm/x86-elf/lookup.S — part of check-in [129f90b580] at 2012-03-04 20:20:52 on branch runtime — Import and integrate ObjFW-RT. (user: js, size: 1556) [annotate] [blame] [check-ins using]
- File
src/runtime/lookup-x86-elf.S
— part of check-in
[3dbfc001c0]
at
2012-03-06 17:18:06
on branch runtime
— Get rid of src/runtime/asm and move the files to src/runtime.
Subdirectories don't really work without traversing them and having a
Makefile in them and it's not really worth the effort for just 2 files. (user: js, size: 1556) [annotate] [blame] [check-ins using]
To Artifact [97a3d5398b]:
- File
src/runtime/lookup-x86-elf.S
— part of check-in
[acc809db12]
at
2012-04-06 14:07:46
on branch runtime
— Convert lookup-x86-elf.S to AT&T syntax.
Clang has an integrated assembler now which only accepts AT&T syntax. (user: js, size: 1507) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
12 13 14 15 16 17 18 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #if defined(__i386__) && defined(__ELF__) | < | | | | | | | | | | | | | | | | | | | | | | 12 13 14 15 16 17 18 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 74 75 76 77 78 79 80 | * Public License, either version 2 or 3, which can be found in the file * LICENSE.GPLv2 or LICENSE.GPLv3 respectively included in the packaging of this * file. */ #if defined(__i386__) && defined(__ELF__) .globl objc_msg_lookup .globl objc_msg_lookup_super .section .text objc_msg_lookup: movl 4(%esp), %edx testl %edx, %edx jz ret_nil movl (%edx), %edx movl 32(%edx), %edx lookup: movl 8(%esp), %eax movzbl 2(%eax), %ecx movl (%edx,%ecx,4), %edx movzbl 1(%eax), %ecx movl (%edx,ecx,4), %edx movzbl (%eax), %ecx movl (%edx,%ecx,4), %eax testl %eax, %eax jz forward ret forward: call get_eip .L1: addl $objc_forward_handler-.L1, %eax jmp *%eax objc_msg_lookup_super: movl 4(%esp), %edx cmpl $0, (%edx) je ret_nil movl 4(%edx), %edx movl 32(%edx), %edx jmp lookup ret_nil: call get_eip .L2: addl $nil_method-.L2, %eax ret nil_method: movl 4(%esp), %eax ret get_eip: movl (%esp), %eax ret .type objc_msg_lookup, @function .type objc_msg_lookup_super, @function .size objc_msg_lookup, forward-objc_msg_lookup .size objc_msg_lookup_super, ret_nil-objc_msg_lookup_super #endif |