pub struct CompilerFrame {
pub closure: Rc<RefCell<Closure>>,
/* private fields */
}Fields§
§closure: Rc<RefCell<Closure>>Implementations§
Source§impl CompilerFrame
impl CompilerFrame
pub fn write(&mut self, bytecode: ByteCode, pos: Position) -> Address
pub fn overwrite( &mut self, addr: Address, bytecode: ByteCode, pos: Option<Position>, )
pub fn addr(&self) -> Address
pub fn new_const(&mut self, value: Value) -> Address
pub fn new_closure(&mut self, value: Rc<RefCell<Closure>>) -> Address
pub fn new_register(&mut self) -> Register
pub fn add_registers(&mut self, amount: Register)
pub fn push_scope(&mut self)
pub fn pop_scope(&mut self) -> Option<Scope>
pub fn scope(&self) -> Option<&Scope>
pub fn scope_mut(&mut self) -> Option<&mut Scope>
pub fn new_local(&mut self, ident: String) -> Register
pub fn get_local(&self, ident: &str) -> Option<Register>
Trait Implementations§
Source§impl Debug for CompilerFrame
impl Debug for CompilerFrame
Source§impl Default for CompilerFrame
impl Default for CompilerFrame
Source§fn default() -> CompilerFrame
fn default() -> CompilerFrame
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CompilerFrame
impl !RefUnwindSafe for CompilerFrame
impl !Send for CompilerFrame
impl !Sync for CompilerFrame
impl Unpin for CompilerFrame
impl !UnwindSafe for CompilerFrame
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