Skip to main content

try_vm_execute

Function try_vm_execute 

Source
pub fn try_vm_execute(
    program: &Program,
    interp: &mut VMHelper,
) -> Option<PerlResult<PerlValue>>
Expand description

Try to compile and run via bytecode VM. Returns None if compilation fails.

rkyv bytecode cache. When interp.cached_chunk is populated (from a cache hit), this function skips compile_program entirely and runs the preloaded chunk. On cache miss the compiler runs normally and, if interp.cache_script_path is set, the fresh chunk + program are persisted to the rkyv shard so the next run skips lex/parse/compile entirely.