diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-29 14:57:36 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-29 14:57:36 -0200 |
commit | 745eb4199333f153a28c75837b6a1addf614f4a9 (patch) | |
tree | 9eb2cfe63700db8e2102d980d603ee294111cb14 /lopcodes.c | |
parent | c766e4103db888063c4f928747afd6eb448e306f (diff) | |
download | lua-github-745eb4199333f153a28c75837b6a1addf614f4a9.tar.gz |
new opcodes OP_RETURN0/OP_RETURN1
Diffstat (limited to 'lopcodes.c')
-rw-r--r-- | lopcodes.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* -** $Id: lopcodes.c,v 1.69 2017/11/22 18:41:20 roberto Exp roberto $ +** $Id: lopcodes.c,v 1.70 2017/11/27 17:44:31 roberto Exp roberto $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ @@ -75,6 +75,8 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { "CALL", "TAILCALL", "RETURN", + "RETURN0", + "RETURN1", "FORLOOP", "FORPREP", "TFORCALL", @@ -146,6 +148,8 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { ,opmode(0, 1, iABC) /* OP_CALL */ ,opmode(0, 1, iABC) /* OP_TAILCALL */ ,opmode(0, 0, iABC) /* OP_RETURN */ + ,opmode(0, 0, iABC) /* OP_RETURN0 */ + ,opmode(0, 0, iABC) /* OP_RETURN1 */ ,opmode(0, 1, iABx) /* OP_FORLOOP */ ,opmode(0, 1, iABx) /* OP_FORPREP */ ,opmode(0, 0, iABC) /* OP_TFORCALL */ |