Expand description
Opcode constants and instruction operand helpers.
Structs§
- Builtin
Function - Builtin function ids used by fastcall instructions.
Enums§
- Capture
Type - Capture type used by
CAPTURE. - Feedback
Type - Feedback-slot type tags.
- Opcode
- Luau bytecode opcode stored in the low byte of each instruction word.
Constants§
- FORGLOOP_
INEXT_ BIT FORGLOOPAUX word: bit 31 marks anipairs-style inext fast path (set when the loop was prepared byForGPrepInext).- FORGLOOP_
VARS_ MASK FORGLOOPAUX word: the low byte carries the iteration variable count.- IMPORT_
PATH_ COMPONENT_ BITS - Import id: each path component is a 10-bit string-constant index, packed high-to-low starting at bit 20.
- IMPORT_
PATH_ COMPONENT_ MASK - Mask for one packed import path component.
- IMPORT_
PATH_ COUNT_ SHIFT - Import id: bits 30-31 carry the path-component count (1-3).
- JUMPX_
K_ INDEX_ MASK JumpXEqK*AUX word: the low 24 bits carry the constant index.- JUMPX_
K_ NOT_ BIT JumpXEqK*AUX word: bit 31 negates the comparison.
Functions§
- import_
component_ shift - Bit shift of the
index-th (0-based) packed import path component.