diff --git a/basis/cpu/x86/32/bootstrap.factor b/basis/cpu/x86/32/bootstrap.factor index 5b3bff1fc6..15a7dc1c29 100644 --- a/basis/cpu/x86/32/bootstrap.factor +++ b/basis/cpu/x86/32/bootstrap.factor @@ -91,21 +91,11 @@ IN: bootstrap.x86 jit-load-context jit-restore-context - ! save C callstack pointer - ctx-reg context-callstack-save-offset [+] ESP MOV - - ! load Factor callstack pointer - ESP ctx-reg context-callstack-bottom-offset [+] MOV - ESP 4 ADD - jit-call-quot jit-load-vm jit-save-context - ! load C callstack pointer - ESP ctx-reg context-callstack-save-offset [+] MOV - ESP [] vm-reg MOV "end_callback" jit-call ] \ c-to-factor define-sub-primitive diff --git a/basis/cpu/x86/64/bootstrap.factor b/basis/cpu/x86/64/bootstrap.factor index b068c60352..2f03823d45 100644 --- a/basis/cpu/x86/64/bootstrap.factor +++ b/basis/cpu/x86/64/bootstrap.factor @@ -82,22 +82,12 @@ IN: bootstrap.x86 jit-restore-context - ! save C callstack pointer - ctx-reg context-callstack-save-offset [+] stack-reg MOV - - ! load Factor callstack pointer - stack-reg ctx-reg context-callstack-bottom-offset [+] MOV - stack-reg 8 ADD - ! call the quotation arg1 nv-reg MOV jit-call-quot jit-save-context - ! load C callstack pointer - stack-reg ctx-reg context-callstack-save-offset [+] MOV - arg1 vm-reg MOV "end_callback" jit-call ] \ c-to-factor define-sub-primitive