pub struct BytecodeEmitter { /* private fields */ }Implementations§
Source§impl BytecodeEmitter
impl BytecodeEmitter
pub fn new() -> Self
pub fn register_agents(&self, vm: &mut BetVm)
pub fn emit_header_jump(&mut self) -> usize
pub fn patch_header_jump(&mut self, patch_pos: usize)
pub fn emit_program(&mut self, program: &Program)
pub fn emit_function(&mut self, func: &Function)
pub fn emit_stmt(&mut self, stmt: &Stmt)
pub fn emit_entry_call(&mut self, name: &str)
pub fn get_agent_handlers(&self) -> Vec<(u16, usize)>
pub fn finalize(&mut self) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl Freeze for BytecodeEmitter
impl RefUnwindSafe for BytecodeEmitter
impl Send for BytecodeEmitter
impl Sync for BytecodeEmitter
impl Unpin for BytecodeEmitter
impl UnsafeUnpin for BytecodeEmitter
impl UnwindSafe for BytecodeEmitter
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