aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-03-07 12:55:38 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-03-07 12:55:38 -0300
commit4a1612ff9b968fe446bc4dd20460bfaccabeb3b3 (patch)
treeaef8f8c476e0814c357ead6248a614fb0ca07eac /lopcodes.c
parent464658b16a1a539fd590e1696bfcfb572a77fe13 (diff)
downloadlua-4a1612ff9b968fe446bc4dd20460bfaccabeb3b3.tar.gz
lua-4a1612ff9b968fe446bc4dd20460bfaccabeb3b3.tar.bz2
lua-4a1612ff9b968fe446bc4dd20460bfaccabeb3b3.zip
new experimental syntax using reserved word 'undef'
Diffstat (limited to 'lopcodes.c')
-rw-r--r--lopcodes.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lopcodes.c b/lopcodes.c
index 79d77cc1..ac59537b 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.c,v 1.78 2018/02/15 15:34:29 roberto Exp roberto $ 2** $Id: lopcodes.c,v 1.79 2018/02/21 15:49:32 roberto Exp roberto $
3** Opcodes for Lua virtual machine 3** Opcodes for Lua virtual machine
4** See Copyright Notice in lua.h 4** See Copyright Notice in lua.h
5*/ 5*/
@@ -79,6 +79,8 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
79 "GEI", 79 "GEI",
80 "TEST", 80 "TEST",
81 "TESTSET", 81 "TESTSET",
82 "UNDEF",
83 "ISDEF",
82 "CALL", 84 "CALL",
83 "TAILCALL", 85 "TAILCALL",
84 "RETURN", 86 "RETURN",
@@ -162,6 +164,8 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
162 ,opmode(0, 0, 1, 0, iABC) /* OP_GEI */ 164 ,opmode(0, 0, 1, 0, iABC) /* OP_GEI */
163 ,opmode(0, 0, 1, 0, iABC) /* OP_TEST */ 165 ,opmode(0, 0, 1, 0, iABC) /* OP_TEST */
164 ,opmode(0, 0, 1, 1, iABC) /* OP_TESTSET */ 166 ,opmode(0, 0, 1, 1, iABC) /* OP_TESTSET */
167 ,opmode(0, 0, 0, 0, iABC) /* OP_UNDEF */
168 ,opmode(0, 0, 0, 1, iABC) /* OP_ISDEF */
165 ,opmode(1, 1, 0, 1, iABC) /* OP_CALL */ 169 ,opmode(1, 1, 0, 1, iABC) /* OP_CALL */
166 ,opmode(1, 1, 0, 1, iABC) /* OP_TAILCALL */ 170 ,opmode(1, 1, 0, 1, iABC) /* OP_TAILCALL */
167 ,opmode(0, 1, 0, 0, iABC) /* OP_RETURN */ 171 ,opmode(0, 1, 0, 0, iABC) /* OP_RETURN */