Skip to main content

Module opcodes

Module opcodes 

Source
Expand description

Opcode constants and instruction operand helpers.

Structs§

BuiltinFunction
Builtin function ids used by fastcall instructions.

Enums§

CaptureType
Capture type used by CAPTURE.
FeedbackType
Feedback-slot type tags.
Opcode
Luau bytecode opcode stored in the low byte of each instruction word.

Constants§

FORGLOOP_INEXT_BIT
FORGLOOP AUX word: bit 31 marks an ipairs-style inext fast path (set when the loop was prepared by ForGPrepInext).
FORGLOOP_VARS_MASK
FORGLOOP AUX 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.