#[repr(u8)]pub enum ByteCode {
Show 13 variants
None,
Halt,
Jump {
addr: Locator,
},
JumpIf {
cond: Register,
addr: Locator,
},
String {
dst: Register,
addr: u32,
},
Int {
dst: Register,
value: u64,
},
Float {
dst: Register,
value: f64,
},
Bool {
dst: Register,
value: bool,
},
Move {
dst: Register,
src: Register,
},
Field {
dst: Register,
src: Register,
field: u32,
},
Call {
addr: Locator,
args: u32,
dst: Register,
},
Binary {
op: BinaryOperation,
dst: Register,
left: Register,
right: Register,
},
Unary {
op: UnaryOperation,
dst: Register,
right: Register,
},
}
Variants§
Trait Implementations§
impl Copy for ByteCode
impl StructuralPartialEq for ByteCode
Auto Trait Implementations§
impl Freeze for ByteCode
impl RefUnwindSafe for ByteCode
impl Send for ByteCode
impl Sync for ByteCode
impl Unpin for ByteCode
impl UnwindSafe for ByteCode
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