Commit 985a3742 authored by John van Groningen's avatar John van Groningen
Browse files

refactor code for profile graph in the copying garbage collector for 32 bit Intel

parent 804f7a41
......@@ -848,15 +848,14 @@ cp_arg_lp2:
jae copy_lp2
ret
copy_arity_1_node2__:
pop d1
copy_arity_1_node2_:
#ifdef PROFILE_GRAPH
copy_arity_2_node2_:
mov 8(a1),d0
mov d0,8(a4)
#endif
copy_arity_1_node2__:
pop d1
copy_arity_1_node2:
copy_arity_1_node2_:
mov a4,(a2)
inc a4
......@@ -923,22 +922,14 @@ copy_selector_2:
mov (d0),d1
testb $2,d1b
#ifdef PROFILE_GRAPH
je copy_arity_2_node2_
#else
je copy_arity_1_node2__
#endif
cmpw $2,-2(d1)
jbe copy_selector_2_
movl 8(d0),d1
testb $1,(d1)
#ifdef PROFILE_GRAPH
jne copy_arity_2_node2_
#else
jne copy_arity_1_node2__
#endif
movl -8(a0),a0
......@@ -988,11 +979,7 @@ copy_record_selector_2:
je copy_strict_record_selector_2
testb $2,d0b
# ifdef PROFILE_GRAPH
je copy_arity_2_node2_
# else
je copy_arity_1_node2_
# endif
cmpw $258,-2(d0)
jbe copy_record_selector_2_
......@@ -1026,26 +1013,14 @@ copy_record_selector_2:
#ifdef COPY_RECORDS_WITHOUT_POINTERS_TO_END_OF_HEAP
je copy_record_selector_2_
# ifdef PROFILE_GRAPH
jmp copy_arity_2_node2_
# else
jmp copy_arity_1_node2_
# endif
copy_selector_2__:
mov 4(a1),d0
mov 8(d0),d0
testb $1,(d0)
# ifdef PROFILE_GRAPH
jne copy_arity_2_node2_
# else
jne copy_arity_1_node2_
# endif
#else
# ifdef PROFILE_GRAPH
jne copy_arity_2_node2_
# else
jne copy_arity_1_node2_
# endif
#endif
copy_record_selector_2_:
movl -8(a0),d0
......@@ -1067,11 +1042,7 @@ copy_record_selector_3:
copy_strict_record_selector_2:
testb $2,d0b
# ifdef PROFILE_GRAPH
je copy_arity_2_node2_
# else
je copy_arity_1_node2_
# endif
cmpw $258,-2(d0)
jbe copy_strict_record_selector_2_
......@@ -1083,11 +1054,7 @@ copy_strict_record_selector_2:
movl 4(a1),d0
movl 8(d0),d0
testb $1,(d0)
# ifdef PROFILE_GRAPH
jne copy_arity_2_node2_
# else
jne copy_arity_1_node2_
# endif
jmp copy_strict_record_selector_2_
......@@ -1116,11 +1083,7 @@ copy_strict_record_selector_2_b:
and (a1),d0
popl a1
# ifdef PROFILE_GRAPH
jne copy_arity_2_node2_
# else
jne copy_arity_1_node2_
# endif
copy_strict_record_selector_2_:
movl -8(a0),d0
......
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