Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaxArgBX = 1<<18 - 1 MaxArgSBX = MaxArgBX >> 1 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Code ¶
type Code uint8
const ( MOVE Code = iota LOADK LOADKX LOADBOOL LOADNIL GETUPVAL GETTABUP GETTABLE SETTABUP SETUPVAL SETTABLE NEWTABLE SELF ADD SUB MUL MOD POW DIV IDIV BAND BOR BXOR SHL SHR UNM BNOT NOT LEN CONCAT JMP EQ LT LE TEST TESTSET CALL TAILCALL RETURN FORLOOP FORPREP TFORCALL TFORLOOP SETLIST CLOSURE VARARG EXTRAARG )
type Mask ¶
type Mask uint8
ArgMask represents masks for instruction properties.
The format is: bits 0-1: op mode bits 2-3: C arg mode bits 4-5: B arg mode bit 6: instruction set register A bit 7: operator is a test (next instruction must be a jump)
Click to show internal directories.
Click to hide internal directories.