ObjFW  Check-in [b1ee7629b5]

Overview
Comment:lookup-asm-x86-win32.S: Support tagged pointers
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tagged-pointers
Files: files | file ages | folders
SHA3-256: b1ee7629b52cee12efa91620091eaa8db80de464b953471b17f24f3a7cac61c8
User & Date: js on 2020-06-30 21:24:27
Other Links: branch diff | manifest | tags
Context
2020-07-01
21:32
Merge trunk into branch "tagged-pointers" check-in: 6d5cc25f0c user: js tags: tagged-pointers
2020-06-30
21:24
lookup-asm-x86-win32.S: Support tagged pointers check-in: b1ee7629b5 user: js tags: tagged-pointers
21:12
lookup-asm-x86_64-win64.S: Support tagged pointers check-in: 2cec2f2e8d user: js tags: tagged-pointers
Changes

Modified src/runtime/lookup-asm/lookup-asm-x86-win32.S from [44cfb2c923] to [db823a1fe8].

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
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







+
+
+
















-
+



+
+
+
-
-
+
+
+
+
+
+







.section .text
.macro generate_lookup name not_found
\name:
	mov	edx, [esp+4]
	test	edx, edx
	jz	short ret_nil

	bt	edx, 0
	jc	short .Ltagged_pointer_\name

	mov	edx, [edx]
	mov	edx, [edx+32]

.Lmain_\name:
	mov	eax, [esp+8]

#ifdef OF_SELUID24
	movzx	ecx, byte ptr [eax+2]
	mov	edx, [edx+ecx*4]
#endif
	movzx	ecx, byte ptr [eax+1]
	mov	edx, [edx+ecx*4]
	movzx	ecx, byte ptr [eax]
	mov	eax, [edx+ecx*4]

	test	eax, eax
	jz	short 0f
	jz	\not_found

	ret

.Ltagged_pointer_\name:
	movzx	edx, dl
	shr	edx, 1
0:
	jmp	\not_found

	mov	eax, offset _objc_tagged_pointer_classes
	mov	edx, [eax+edx*4]
	mov	edx, [edx+32]

	jmp	short .Lmain_\name
.endm

.macro generate_lookup_super name lookup
\name:
	mov	edx, [esp+4]
	mov	eax, [edx]
	test	eax, eax