pub enum OpKind {
Show 42 variants
Nop,
Ret,
Retv,
PushNil,
PushTrue,
PushTop,
PushReturn,
Neg,
Add,
Sub,
Mul,
Div,
Mod,
BitTest,
And,
Or,
SetE,
SetNe,
SetG,
SetLe,
SetL,
SetGe,
InitStack {
args: i8,
locals: i8,
},
CallFn {
name: String,
},
Syscall {
id: u16,
},
JmpAbs {
target: u32,
},
JzAbs {
target: u32,
},
JmpLabel {
label: String,
},
JzLabel {
label: String,
},
PushI8(i8),
PushI16(i16),
PushI32(i32),
PushF32(f32),
PushString(String),
PushGlobal(u16),
PushStack(i8),
PushGlobalTable(u16),
PushLocalTable(i8),
PopGlobal(u16),
PopStack(i8),
PopGlobalTable(u16),
PopLocalTable(i8),
}Variants§
Nop
Ret
Retv
PushNil
PushTrue
PushTop
PushReturn
Neg
Add
Sub
Mul
Div
Mod
BitTest
And
Or
SetE
SetNe
SetG
SetLe
SetL
SetGe
InitStack
CallFn
Syscall
JmpAbs
JzAbs
JmpLabel
JzLabel
PushI8(i8)
PushI16(i16)
PushI32(i32)
PushF32(f32)
PushString(String)
PushGlobal(u16)
PushStack(i8)
PushGlobalTable(u16)
PushLocalTable(i8)
PopGlobal(u16)
PopStack(i8)
PopGlobalTable(u16)
PopLocalTable(i8)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for OpKind
impl RefUnwindSafe for OpKind
impl Send for OpKind
impl Sync for OpKind
impl Unpin for OpKind
impl UnwindSafe for OpKind
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