Differences From Artifact [1fd16b224f]:
- File src/runtime/asm/amd64-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: 1394) [annotate] [blame] [check-ins using]
- File
src/runtime/lookup-amd64-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: 1394) [annotate] [blame] [check-ins using]
To Artifact [dde3e76344]:
- File
src/runtime/lookup-amd64-elf.S
— part of check-in
[d3ce57addf]
at
2012-04-06 13:43:59
on branch runtime
— Convert lookup-amd64-elf.S to AT&T syntax.
Clang has an integrated assembler now which only accepts AT&T syntax.
lookup-x86-elf.S to follow. (user: js, size: 1417) [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(__x86_64__) && 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 | * 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(__x86_64__) && defined(__ELF__) .globl objc_msg_lookup .globl objc_msg_lookup_super .section .text objc_msg_lookup: testq %rdi, %rdi jz ret_nil movq (%rdi), %r8 movq 64(%r8), %r8 lookup: movq (%rsi), %rax movzbl %ah, %ecx movzbl %al, %edx shrl $16, %eax movq (%r8,%rax,8), %r8 movq (%r8,%rcx,8), %r8 movq (%r8,%rdx,8), %rax testq %rax, %rax jz forward ret forward: mov objc_forward_handler@GOTPCREL(%rip), %rax jmp *%rax objc_msg_lookup_super: movq (%rdi), %rax testq %rax, %rax jz ret_nil movq 8(%rdi), %r8 movq 64(%r8), %r8 movq %rdi, %rax jmp lookup ret_nil: leaq nil_method(%rip), %rax ret nil_method: movq %rdi, %rax 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 |