This was the signal handler prolog code can be shared completely between x86.32 and x86.64.
0 JMP f rc-relative rel-word-pic-tail
] jit-word-jump jit-define
+: jit-load-vm ( -- )
+ ! no-op on x86-64. in factor contexts vm-reg always contains the
+ ! vm pointer.
+ ;
+
: jit-load-context ( -- )
ctx-reg vm-reg vm-context-offset [+] MOV ;
PUSHF
- ! on x86-32 we need to load the vm register
- ! on x86-64 it's already loaded whenever we're in a factor context
- bootstrap-cell 4 = [ jit-load-vm ] when ;
+ jit-load-vm ;
: jit-signal-handler-epilog ( -- )
POPF