new opcodes 'FORLOOP1'/'FORPREP1' for "basic for" (integer variable
with increment of 1)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
** $Id: lopcodes.c,v 1.72 2017/12/04 17:41:30 roberto Exp roberto $
|
||||
** $Id: lopcodes.c,v 1.73 2017/12/13 18:32:09 roberto Exp roberto $
|
||||
** Opcodes for Lua virtual machine
|
||||
** See Copyright Notice in lua.h
|
||||
*/
|
||||
@@ -82,6 +82,8 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
|
||||
"RETURN",
|
||||
"RETURN0",
|
||||
"RETURN1",
|
||||
"FORLOOP1",
|
||||
"FORPREP1",
|
||||
"FORLOOP",
|
||||
"FORPREP",
|
||||
"TFORCALL",
|
||||
@@ -160,6 +162,8 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
|
||||
,opmode(0, 0, iABC) /* OP_RETURN */
|
||||
,opmode(0, 0, iABC) /* OP_RETURN0 */
|
||||
,opmode(0, 0, iABC) /* OP_RETURN1 */
|
||||
,opmode(0, 1, iABx) /* OP_FORLOOP1 */
|
||||
,opmode(0, 1, iABx) /* OP_FORPREP1 */
|
||||
,opmode(0, 1, iABx) /* OP_FORLOOP */
|
||||
,opmode(0, 1, iABx) /* OP_FORPREP */
|
||||
,opmode(0, 0, iABC) /* OP_TFORCALL */
|
||||
|
||||
Reference in New Issue
Block a user