Differences From Artifact [56a0df9bbf]:
- File
src/runtime/lookup-asm/lookup-asm-amd64-win64.S
— part of check-in
[70a7617023]
at
2023-10-25 00:23:15
on branch trunk
— Move AMD64/Win64 assembly back to Intel syntax
This used to be in Intel syntax, but was moved back to AT&T syntax for
consistency with the Mach-O version, where the assembler doesn't support
the Intel syntax properly. However, it makes more sense to use Intel
syntax where possible. (user: js, size: 1960) [annotate] [blame] [check-ins using]
To Artifact [2fecd29e3d]:
- File src/runtime/lookup-asm/lookup-asm-amd64-win64.S — part of check-in [cb18f26404] at 2023-10-28 18:35:43 on branch trunk — Use more local labels in assembly (user: js, size: 1970) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
22 23 24 25 26 27 28 | .globl objc_msg_lookup_super .globl objc_msg_lookup_super_stret .section .text .macro GENERATE_LOOKUP name notFound \name: test rcx, rcx | | | 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | .globl objc_msg_lookup_super .globl objc_msg_lookup_super_stret .section .text .macro GENERATE_LOOKUP name notFound \name: test rcx, rcx jz short .LreturnNilMethod test cl, 1 jnz short .LtaggedPointer_\name mov r8, [rcx] mov r8, [r8 + 56] |
︙ | ︙ | |||
76 77 78 79 80 81 82 | .endm .macro GENERATE_LOOKUP_SUPER name lookup \name: mov r8, rcx mov rcx, [rcx] test rcx, rcx | | | | | | 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | .endm .macro GENERATE_LOOKUP_SUPER name lookup \name: mov r8, rcx mov rcx, [rcx] test rcx, rcx jz short .LreturnNilMethod mov r8, [r8 + 8] mov r8, [r8 + 56] jmp short .Lmain_\lookup .def \name .scl 2 .type 32 .endef .endm GENERATE_LOOKUP objc_msg_lookup objc_methodNotFound GENERATE_LOOKUP objc_msg_lookup_stret objc_methodNotFound_stret GENERATE_LOOKUP_SUPER objc_msg_lookup_super objc_msg_lookup GENERATE_LOOKUP_SUPER objc_msg_lookup_super_stret objc_msg_lookup_stret .LreturnNilMethod: lea rax, [rip + .LnilMethod] ret .LnilMethod: xor rax, rax ret |