ObjFW  Check-in [7156752f97]

Overview
Comment:Fix super lookup of missing methods on PPC
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7156752f977fa880b1cdd339e0698f7d46ce3150076d9fd672bd2e5e5fd349ab
User & Date: js on 2016-05-08 09:36:58
Other Links: manifest | tags
Context
2016-05-08
21:08
OFXMLElement: Use more fast enumeration check-in: a7c6add997 user: js tags: trunk
09:36
Fix super lookup of missing methods on PPC check-in: 7156752f97 user: js tags: trunk
2016-05-07
21:52
Fix a warning with Apple GCC 4.0 check-in: ea000d07a9 user: js tags: trunk
Changes

Modified src/runtime/lookup-asm/lookup-asm-ppc-elf.S from [fba5d159fa] to [cf43f0aba4].

56
57
58
59
60
61
62

63
64
65
66
67
68
69
70
71
72
73
74
	b	\not_found@plt
.type \name, %function
.size \name, .-\name
.endm

.macro generate_lookup_super name lookup
\name:

	lwz	%r5, 0(%r3)
	cmpwi	%r5, 0
	beq-	ret_nil

	lwz	%r5, 4(%r3)
	lwz	%r5, 32(%r5)

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








>
|
|


|







56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
	b	\not_found@plt
.type \name, %function
.size \name, .-\name
.endm

.macro generate_lookup_super name lookup
\name:
	mr	%r5, %r3
	lwz	%r3, 0(%r3)
	cmpwi	%r3, 0
	beq-	ret_nil

	lwz	%r5, 4(%r5)
	lwz	%r5, 32(%r5)

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

Modified src/runtime/lookup-asm/lookup-asm-ppc-macho.S from [e8c309c610] to [45cea4358f].

52
53
54
55
56
57
58

59
60
61
62
63
64
65
66
67
68
69
70

0:
	b	$1
.endmacro

.macro generate_lookup_super
$0:

	lwz	r5, 0(r3)
	cmpwi	r5, 0
	beq-	ret_nil

	lwz	r5, 4(r3)
	lwz	r5, 32(r5)

	b	Lmain_$1
.endmacro

generate_lookup _objc_msg_lookup, _objc_method_not_found
generate_lookup _objc_msg_lookup_stret, _objc_method_not_found_stret







>
|
|


|







52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71

0:
	b	$1
.endmacro

.macro generate_lookup_super
$0:
	mr	r5, r3
	lwz	r3, 0(r3)
	cmpwi	r3, 0
	beq-	ret_nil

	lwz	r5, 4(r5)
	lwz	r5, 32(r5)

	b	Lmain_$1
.endmacro

generate_lookup _objc_msg_lookup, _objc_method_not_found
generate_lookup _objc_msg_lookup_stret, _objc_method_not_found_stret