add doc
This commit is contained in:
parent
5d687081fb
commit
7c844fde52
1 changed files with 13 additions and 2 deletions
|
|
@ -101,10 +101,21 @@ pub enum Instruction {
|
|||
CheckCast { reg: u8, lit: IdType },
|
||||
/// Check if an object if an instance of a type.
|
||||
/// (put 1 in the dest register if yes, else 0)
|
||||
InstanceOf { dest: u8, obj: u8, lit: IdType },
|
||||
InstanceOf {
|
||||
/// 4 bit register
|
||||
dest: u8,
|
||||
/// 4 bit register
|
||||
obj: u8,
|
||||
lit: IdType,
|
||||
},
|
||||
/// Get the number of item in an array.
|
||||
/// (put the lenght in the dest register)
|
||||
ArrayLength { dest: u8, arr: u8 },
|
||||
ArrayLength {
|
||||
/// 4 bit register
|
||||
dest: u8,
|
||||
/// 4 bit register
|
||||
arr: u8,
|
||||
},
|
||||
/// Construct a new instance of the indicated type and store a reference to it.
|
||||
NewInstance { reg: u8, lit: IdType },
|
||||
/// Construct a new array of the indicated type and size in size_reg and store a reference to it.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue