fix BUG (GC bug) in L__gc_init

This commit is contained in:
danyabeerzun 2019-04-24 16:47:36 +03:00
parent da677ff879
commit 23697829b9

View file

@ -11,12 +11,11 @@ __gc_stack_top: .long 0
.globl __post_gc .globl __post_gc
.globl L__gc_init .globl L__gc_init
.globl __gc_root_scan_stack .globl __gc_root_scan_stack
.globl __gc_trace_registers
.extern init_pool .extern init_pool
.extern gc_test_and_copy_root .extern gc_test_and_copy_root
.text .text
L__gc_init: movl %esp, __gc_stack_bottom L__gc_init: movl %ebp, __gc_stack_bottom
addl $4, __gc_stack_bottom addl $4, __gc_stack_bottom
call init_pool call init_pool
ret ret
@ -113,19 +112,3 @@ returnn:
movl %ebp, %esp movl %ebp, %esp
popl %ebp popl %ebp
ret ret
__gc_trace_registers:
pushl %ebp
movl %esp, %ebp
pushl %ebx
call gc_test_and_copy_root
popl %ebx
movl %ebp, %esp
popl %ebp
ret