pub struct CompiledChain { /* private fields */ }Expand description
A compiled chain plus its side-exit status cell (present only when the
program contains checked ops). The deopt stencil stores 1 through the
patched cell address; CompiledChain::run_with_frame reads-and-resets
it after every run.
Implementations§
Source§impl CompiledChain
impl CompiledChain
Sourcepub fn run_with_frame(&self, frame: &mut [i64]) -> ChainOutcome
pub fn run_with_frame(&self, frame: &mut [i64]) -> ChainOutcome
Run over the given frame (slot 0 = VM register 0, …) with a fresh operand stack.
Sourcepub fn has_patch_marks(&self) -> bool
pub fn has_patch_marks(&self) -> bool
Sourcepub fn piece_count(&self) -> usize
pub fn piece_count(&self) -> usize
Stencil pieces in the chain (diagnostics/tests).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompiledChain
impl RefUnwindSafe for CompiledChain
impl Send for CompiledChain
impl Sync for CompiledChain
impl Unpin for CompiledChain
impl UnsafeUnpin for CompiledChain
impl UnwindSafe for CompiledChain
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more