From eaab9c43639adba7b9c6cfd14bbb5f526b7b5c01 Mon Sep 17 00:00:00 2001 From: Amy Wysocka Date: Thu, 31 Jul 2025 17:54:37 +0200 Subject: [PATCH] Add missing documentation for FORGPREP_INEXT and FORGPREP_NEXT (#1933) Added documentation for FORGPREP_INEXT and FORGPREP_NEXT regarding the D argument, which is used as the jump offset to the corresponding FORGLOOP instruction. --- Common/include/Luau/Bytecode.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Common/include/Luau/Bytecode.h b/Common/include/Luau/Bytecode.h index a151056c..3716d1f1 100644 --- a/Common/include/Luau/Bytecode.h +++ b/Common/include/Luau/Bytecode.h @@ -298,6 +298,7 @@ enum LuauOpcode // FORGPREP_INEXT: prepare FORGLOOP with 2 output variables (no AUX encoding), assuming generator is luaB_inext, and jump to FORGLOOP // A: target register (see FORGLOOP for register layout) + // D: jump offset (-32768..32767) LOP_FORGPREP_INEXT, // FASTCALL3: perform a fast call of a built-in function using 3 register arguments @@ -310,6 +311,7 @@ enum LuauOpcode // FORGPREP_NEXT: prepare FORGLOOP with 2 output variables (no AUX encoding), assuming generator is luaB_next, and jump to FORGLOOP // A: target register (see FORGLOOP for register layout) + // D: jump offset (-32768..32767) LOP_FORGPREP_NEXT, // NATIVECALL: start executing new function in native code