Expand description
Control Flow FFI Functions for JIT
Higher-order functions (fold, reduce, map, filter, forEach) and function call helpers for JIT-compiled code.
Functions§
- jit_
call_ foreign - jit_
call_ foreign_ dynamic - jit_
call_ foreign_ native - jit_
call_ foreign_ native_ 0 - jit_
call_ foreign_ native_ 1 - jit_
call_ foreign_ native_ 2 - jit_
call_ foreign_ native_ 3 - jit_
call_ foreign_ native_ 4 - jit_
call_ foreign_ native_ 5 - jit_
call_ foreign_ native_ 6 - jit_
call_ foreign_ native_ 7 - jit_
call_ foreign_ native_ 8 - jit_
call_ function - Call a function by function_id Stack reads args from ctx.stack before the call
- jit_
call_ value - Call a closure or function value through the trampoline VM.
- jit_
control_ every - every(array, predicate) - true if all elements match predicate
- jit_
control_ filter - filter(array, predicate) - keep elements where predicate returns true
- jit_
control_ find - find(array, predicate) - find first element matching predicate
- jit_
control_ find_ index - findIndex(array, predicate) - find index of first element matching predicate
- jit_
control_ fold - fold(array, initial, fn) - left fold over array
- jit_
control_ foreach - forEach(array, fn, count) - execute fn for each element (side effects)
- jit_
control_ map - map(array, fn) - transform each element
- jit_
control_ reduce - reduce(array, fn, initial) - reduce array to single value
- jit_
control_ some - some(array, predicate) - true if any element matches predicate
- jit_
vm_ ⚠fallback_ trampoline - Trampoline placeholder for mixed-table VM fallback paths.
- set_
jit_ runtime_ error - Record a VM-trampoline error message for the surrounding JIT execution to
surface on deopt. Called from
jit_call_method’sErrarm. Overwrites any prior message (the most recent error is the one that triggers the deopt). - set_
trampoline_ ⚠vm - Register the trampoline VM for use during JIT execution.
- take_
jit_ runtime_ error - Take (and clear) the recorded VM-trampoline error message. Called by
JITExecutorwhen a JIT-compiled function returns a negative signal, so the clean VM error can be surfaced in place of a generic JIT error code. - unset_
trampoline_ vm - Clear the trampoline VM pointer after JIT execution.
- with_
trampoline_ vm - Access the trampoline VM for read-only queries (schema lookups, etc.)
- with_
trampoline_ vm_ mut - Execute a closure with mutable access to the trampoline VM.