Move definition of $execute function

This commit is contained in:
2026-02-28 13:09:22 +00:00
parent fa5a6dbb1d
commit aceeebd3ff

View File

@@ -535,6 +535,13 @@
global.set $ip global.set $ip
call $next) call $next)
(func $execute
call $pop
global.set $cfa
global.get $cfa
i32.load
global.set $fn)
;; Return and parameter stack primitives ;; Return and parameter stack primitives
(func $tor (func $tor
@@ -660,15 +667,6 @@
global.set $ip global.set $ip
call $next) call $next)
;; Execution
(func $execute
call $pop
global.set $cfa
global.get $cfa
i32.load
global.set $fn)
;; The codewords function table must contain every codeword we want ;; The codewords function table must contain every codeword we want
;; to be able to run, as it's indices into this table that can be ran ;; to be able to run, as it's indices into this table that can be ran
;; with call_indirect in the $trampoline loop. Fantastically, there ;; with call_indirect in the $trampoline loop. Fantastically, there