Enum phoenix_lang::chunk::OpCode
source · pub enum OpCode {
Show 40 variants
OpReturn,
OpPop,
OpDefineGlobal(usize),
OpGetGlobal(usize),
OpSetGlobal(usize),
OpGetSuper(usize),
OpCallGlobal(usize, usize, usize),
OpGetModuleVar(usize, usize),
OpGetLocal(usize),
OpSetLocal(usize),
OpInvoke(usize, usize, usize),
OpImport(usize),
OpGetProperty(usize),
OpSetProperty(usize),
OpGetUpvalue(usize),
OpSetUpvalue(usize),
OpClosure,
OpJump(usize),
OpJumpIfFalse(usize),
OpLoop(usize),
OpCall(usize, usize),
OpClass(usize),
OpConstant(usize),
OpNil,
OpTrue,
OpFalse,
OpNegate,
OpNot,
OpAdd,
OpAddAssign,
OpSubtract,
OpMultiply,
OpDivide,
OpEqual,
OpGreater,
OpLess,
OpPrint,
OpGetIndex,
OpSetIndex,
OpCreateList(usize),
}Variants§
OpReturn
OpPop
OpDefineGlobal(usize)
OpGetGlobal(usize)
OpSetGlobal(usize)
OpGetSuper(usize)
OpCallGlobal(usize, usize, usize)
OpGetModuleVar(usize, usize)
OpGetLocal(usize)
OpSetLocal(usize)
OpInvoke(usize, usize, usize)
Combines a GetProperty and a Call. Contains the exact same information. First usize is the index for the property name, second is for the arity, third is for the module index
OpImport(usize)
OpGetProperty(usize)
OpSetProperty(usize)
OpGetUpvalue(usize)
OpSetUpvalue(usize)
OpClosure
OpJump(usize)
OpJumpIfFalse(usize)
OpLoop(usize)
OpCall(usize, usize)
OpClass(usize)
OpConstant(usize)
OpNil
OpTrue
OpFalse
OpNegate
OpNot
OpAdd
OpAddAssign
OpSubtract
OpMultiply
OpDivide
OpEqual
OpGreater
OpLess
OpPrint
OpGetIndex
OpSetIndex
OpCreateList(usize)
Trait Implementations§
source§impl<'de> Deserialize<'de> for OpCode
impl<'de> Deserialize<'de> for OpCode
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<OpCode> for OpCode
impl PartialEq<OpCode> for OpCode
source§impl PartialOrd<OpCode> for OpCode
impl PartialOrd<OpCode> for OpCode
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for OpCode
impl StructuralPartialEq for OpCode
Auto Trait Implementations§
impl RefUnwindSafe for OpCode
impl Send for OpCode
impl Sync for OpCode
impl Unpin for OpCode
impl UnwindSafe for OpCode
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