ObjFW  Check-in [452bdb4a5f]

Overview
Comment:lookup-asm-amd64-*: Remove useless mov

This mov was not correctly translated when the code was converted from
Intel syntax to AT&T syntax, but this never caused any trouble as rdi is
not used in the code it jumps to anyway.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 452bdb4a5f026d533335b294f26cf470f97dadaed6104a80a1d08ed3eb07d8e0
User & Date: js on 2014-02-19 13:05:17
Other Links: manifest | tags
Context
2014-02-19
14:31
Add lookup-asm-amd64-win64.S check-in: 80ab671cf4 user: js tags: trunk
13:05
lookup-asm-amd64-*: Remove useless mov check-in: 452bdb4a5f user: js tags: trunk
11:27
OFEnumerator: Fix documentation confusing Clang check-in: 3f59d993a3 user: js tags: trunk
Changes

Modified src/runtime/lookup-asm/lookup-asm-amd64-elf.S from [f8917d36c7] to [12b1d6de58].

54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
\name:
	movq	(%rdi), %rax
	testq	%rax, %rax
	jz	ret_nil

	movq	8(%rdi), %r8
	movq	64(%r8), %r8
	movq	%rdi, %rax
	jmp	.Lmain_\lookup
.type \name, %function
.size \name, .-\name
.endm

generate_lookup objc_msg_lookup objc_method_not_found
generate_lookup objc_msg_lookup_stret objc_method_not_found_stret







<







54
55
56
57
58
59
60

61
62
63
64
65
66
67
\name:
	movq	(%rdi), %rax
	testq	%rax, %rax
	jz	ret_nil

	movq	8(%rdi), %r8
	movq	64(%r8), %r8

	jmp	.Lmain_\lookup
.type \name, %function
.size \name, .-\name
.endm

generate_lookup objc_msg_lookup objc_method_not_found
generate_lookup objc_msg_lookup_stret objc_method_not_found_stret

Modified src/runtime/lookup-asm/lookup-asm-amd64-macho.S from [515ca230a1] to [f898194a7d].

52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
$0:
	movq	(%rdi), %rax
	testq	%rax, %rax
	jz	ret_nil

	movq	8(%rdi), %r8
	movq	64(%r8), %r8
	movq	%rdi, %rax
	jmp	Lmain_$1
.endmacro

generate_lookup _objc_msg_lookup, _objc_method_not_found
generate_lookup _objc_msg_lookup_stret, _objc_method_not_found_stret
generate_lookup_super _objc_msg_lookup_super, _objc_msg_lookup
generate_lookup_super _objc_msg_lookup_super_stret, _objc_msg_lookup_stret







<







52
53
54
55
56
57
58

59
60
61
62
63
64
65
$0:
	movq	(%rdi), %rax
	testq	%rax, %rax
	jz	ret_nil

	movq	8(%rdi), %r8
	movq	64(%r8), %r8

	jmp	Lmain_$1
.endmacro

generate_lookup _objc_msg_lookup, _objc_method_not_found
generate_lookup _objc_msg_lookup_stret, _objc_method_not_found_stret
generate_lookup_super _objc_msg_lookup_super, _objc_msg_lookup
generate_lookup_super _objc_msg_lookup_super_stret, _objc_msg_lookup_stret