Skip to main content

execute

Function execute 

Source
pub fn execute(
    instructions: &[Instr],
    r: &mut RegisterFile,
    _: &mut Pools,
    err_ctx: &ErrorCtx<'_>,
    callsite_registers: &[Vec<u16>],
    dyn_libs: &[DynamicLibFn],
    structs: &[Struct],
    enums: &[EnumType],
    allocated_arg_count: usize,
    allocated_call_depth: usize,
    host_sigs: &[HostFnSig],
    host_dispatch: &[HostDispatch],
    start: usize,
    native: Option<&NativeCode>,
) -> Result<(), RuntimeError>
Expand description

Runs instructions from start until the program halts.

ยงErrors

Returns the RuntimeError that stopped the program when one no try caught was raised. The registers and pools are left as the error found them.