pub enum Instruction {
Show 81 variants
PushConst(ConstantIndex),
Pop,
Dup,
Add,
Sub,
Mul,
Div,
Mod,
Exp,
Inc,
Dec,
And,
Or,
Not,
Xor,
Eq,
Ne,
Lt,
Gt,
Le,
Ge,
StrictEq,
StrictNe,
LoadGlobal(GlobalIndex),
StoreGlobal(GlobalIndex),
LoadLocal(LocalIndex),
StoreLocal(LocalIndex),
LoadArg(ArgIndex),
LoadThisFunction,
LoadThis,
LoadClosureVar(String),
Jump(CodeAddress),
JumpIfTrue(CodeAddress),
JumpIfFalse(CodeAddress),
Call(FunctionIndex),
Return,
NewObject,
NewArray(ArraySize),
SetProperty,
SetPropertyAssign,
GetProperty,
TypeOf,
InstanceOf,
In,
Delete,
New,
NewClass,
GetPrototype,
SetPrototype,
Await,
Yield,
Throw,
Try(CodeAddress, CodeAddress),
Catch,
Finally,
Spread,
Destructure,
OptionalChain,
NullishCoalesce,
PushNull,
PushUndefined,
PushTrue,
PushFalse,
PushSymbol(ConstantIndex),
PushBigInt(ConstantIndex),
CallFunction(FunctionIndex, ArgIndex),
CallBuiltin(String, ArgIndex),
RemoveObjectProperty,
CallObjectMethod(String, ArgIndex),
CallArrayMethod(String, ArgIndex),
GetArrayLength,
RemoveArrayElement(ArraySize),
PushArrayElement,
PopArrayElement,
ShiftArrayElement,
UnshiftArrayElement(ArraySize),
SliceArray(ArraySize, ArraySize),
ConcatArray(ArraySize),
IndexOfArray(ArraySize),
IncludesArray(ArraySize),
Halt,
}Variants§
PushConst(ConstantIndex)
Pop
Dup
Add
Sub
Mul
Div
Mod
Exp
Inc
Dec
And
Or
Not
Xor
Eq
Ne
Lt
Gt
Le
Ge
StrictEq
StrictNe
LoadGlobal(GlobalIndex)
StoreGlobal(GlobalIndex)
LoadLocal(LocalIndex)
StoreLocal(LocalIndex)
LoadArg(ArgIndex)
LoadThisFunction
LoadThis
LoadClosureVar(String)
Jump(CodeAddress)
JumpIfTrue(CodeAddress)
JumpIfFalse(CodeAddress)
Call(FunctionIndex)
Return
NewObject
NewArray(ArraySize)
SetProperty
SetPropertyAssign
GetProperty
TypeOf
InstanceOf
In
Delete
New
NewClass
GetPrototype
SetPrototype
Await
Yield
Throw
Try(CodeAddress, CodeAddress)
Catch
Finally
Spread
Destructure
OptionalChain
NullishCoalesce
PushNull
PushUndefined
PushTrue
PushFalse
PushSymbol(ConstantIndex)
PushBigInt(ConstantIndex)
CallFunction(FunctionIndex, ArgIndex)
CallBuiltin(String, ArgIndex)
RemoveObjectProperty
CallObjectMethod(String, ArgIndex)
CallArrayMethod(String, ArgIndex)
GetArrayLength
RemoveArrayElement(ArraySize)
PushArrayElement
PopArrayElement
ShiftArrayElement
UnshiftArrayElement(ArraySize)
SliceArray(ArraySize, ArraySize)
ConcatArray(ArraySize)
IndexOfArray(ArraySize)
IncludesArray(ArraySize)
Halt
Trait Implementations§
Source§impl Clone for Instruction
impl Clone for Instruction
Source§fn clone(&self) -> Instruction
fn clone(&self) -> Instruction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Instruction
impl Debug for Instruction
Source§impl<'de> Deserialize<'de> for Instruction
impl<'de> Deserialize<'de> for Instruction
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 for Instruction
impl PartialEq for Instruction
Source§impl Serialize for Instruction
impl Serialize for Instruction
impl StructuralPartialEq for Instruction
Auto Trait Implementations§
impl Freeze for Instruction
impl RefUnwindSafe for Instruction
impl Send for Instruction
impl Sync for Instruction
impl Unpin for Instruction
impl UnwindSafe for Instruction
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