pub enum Instruction {
Show 39 variants LoadBool(usizebool), LoadInt(usizei32), LoadLong(usizei64), LoadFloat(usizef32), LoadDouble(usizef64), LoadObject(usizeusize), LoadConst(usizeusize), LoadGlobal(usizeusize), LoadAt(usizeusizeusize), LoadSuper(usizeusizeusize), Move(usizeusize), Store(usizeusizeusize), StoreAt(usizeusizeusize), StoreGlobal(usizeusize), Jump(usize), JumpF(usizeusize), JumpT(usizeusize), Goto(usize), GotoT(usizeusize), GotoF(usizeusize), PushArg(usize), Call(usizeusizeusize), Add(usizeusizeusize), Sub(usizeusizeusize), Mul(usizeusizeusize), Div(usizeusizeusize), Gt(usizeusizeusize), Lt(usizeusizeusize), Ge(usizeusizeusize), Le(usizeusizeusize), Eq(usizeusizeusize), Ret0, Ret(usize), Label(usize), BitOr(usizeusizeusize), BitXor(usizeusizeusize), BitAnd(usizeusizeusize), And(usizeusizeusize), Or(usizeusizeusize),
}

Variants§

§

LoadBool(usizebool)

LoadBool R(A) = B

Loading bool value B to register A

§

LoadInt(usizei32)

LoadInt R(A) = B

Loading integer value B to register A

§

LoadLong(usizei64)

LoadLong R(A) = B

Loading long value B to register A

§

LoadFloat(usizef32)

LoadFloat R(A) = B

Loading float value B to register A

§

LoadDouble(usizef64)

LoadDouble R(A) = B

Loading double value B to register A

§

LoadObject(usizeusize)

§

LoadConst(usizeusize)

LoadConst R(A) = C(B)

Load constant from object pool to register A

§

LoadGlobal(usizeusize)

LoadGlobal R(A) = G(B)

Load global value B into register A

§

LoadAt(usizeusizeusize)

LoadAt R(A) = R(B)[C]

Load C from B and store in A

§

LoadSuper(usizeusizeusize)

LoadSuper R(A) = R(B)[C]

Load C from B and store in A

§

Move(usizeusize)

Move R(A) = R(B)

Move register

§

Store(usizeusizeusize)

Store R(B)[C] = A

Store A into R(B)[C]

§

StoreAt(usizeusizeusize)

§

StoreGlobal(usizeusize)

StoreGlobal G(A) = R(B)

Store global

§

Jump(usize)

Jump IP

§

JumpF(usizeusize)

Jump (R(A) == false ? ip = B : continue)

§

JumpT(usizeusize)

Jump (R(A) == true ? ip == B : continue)

§

Goto(usize)

Goto

Same as Jump instructions, but uses labels

§

GotoT(usizeusize)

§

GotoF(usizeusize)

§

PushArg(usize)

Push value from R(A) to arguments stack

§

Call(usizeusizeusize)

R(A) = B(Args), C - Arg count, args poped from arg stack

§

Add(usizeusizeusize)

Add R(A) = R(B) + R(C)

§

Sub(usizeusizeusize)

Sub R(A) = R(B) - R(C)

§

Mul(usizeusizeusize)

Mul R(A) = R(B) * R(C)

§

Div(usizeusizeusize)

Div R(A) = R(B) / R(C)

§

Gt(usizeusizeusize)

Gt R(A) = R(B) > R(C)

§

Lt(usizeusizeusize)

Lt R(A) = R(B) < R(C)

§

Ge(usizeusizeusize)

Ge R(A) = R(B) >= R(C)

§

Le(usizeusizeusize)

Le R(A) = R(B) <= R(C)

§

Eq(usizeusizeusize)

Eq R(A) = R(B) == R(C)

§

Ret0

Ret0

return null value

§

Ret(usize)

Ret R(A)

return value from R(A)

§

Label(usize)

Create label with id A

§

BitOr(usizeusizeusize)

§

BitXor(usizeusizeusize)

§

BitAnd(usizeusizeusize)

§

And(usizeusizeusize)

§

Or(usizeusizeusize)

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.