Commit c5b28200 authored by John van Groningen's avatar John van Groningen
Browse files

small optimisation in compacting garbage collector for Intel and AMD64

parent 04b0c0f4
......@@ -504,16 +504,13 @@ no_record_arguments:
update_up_list_2:
mov rdx,rax
mov rax,qword ptr [rax]
inc rax
xor rax,3
mov qword ptr [rdx],rdi
test al,3
jne copy_argument_part_2
sub rax,4
jmp update_up_list_2
je update_up_list_2
copy_argument_part_2:
dec rax
xor rax,3
cmp rax,rcx
jc copy_arguments_1
......
......@@ -443,16 +443,13 @@ no_record_arguments:
update_up_list_2:
movl d0,a1
movl (d0),d0
inc d0
xor $3,d0
movl a4,(a1)
testb $3,d0b
jne copy_argument_part_2
subl $4,d0
jmp update_up_list_2
je update_up_list_2
copy_argument_part_2:
dec d0
xor $3,d0
cmpl a0,d0
jc copy_arguments_1
#ifdef SHARE_CHAR_INT
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment