pulley_interpreter::decode

Trait ExtendedOpVisitor

Source
pub trait ExtendedOpVisitor: OpVisitor {
    // Required methods
    fn trap(&mut self) -> Self::Return;
    fn nop(&mut self) -> Self::Return;
    fn get_sp(&mut self, dst: XReg) -> Self::Return;
}
Available on crate feature decode only.
Expand description

Like OpVisitor but for extended operations.

Required Methods§

Source

fn trap(&mut self) -> Self::Return

Raise a trap.

Source

fn nop(&mut self) -> Self::Return

Do nothing.

Source

fn get_sp(&mut self, dst: XReg) -> Self::Return

Copy the special sp stack pointer register into an x register.

Implementors§

Source§

impl ExtendedOpVisitor for Disassembler<'_>

Available on crate feature disas only.
Source§

impl<B: BytecodeStream> ExtendedOpVisitor for MaterializeOpsVisitor<B>

Source§

impl<F, T, V1, V2> ExtendedOpVisitor for SequencedVisitor<'_, F, V1, V2>
where F: FnMut(V1::Return, V2::Return) -> T, V1: ExtendedOpVisitor, V2: ExtendedOpVisitor<BytecodeStream = V1::BytecodeStream>,