summaryrefslogtreecommitdiff
path: root/lopcodes.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-16 10:59:14 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-16 10:59:14 -0200
commit4c0e36a46e11be2f101203ed0db66ea750bf4333 (patch)
tree625e7be62fc7d9eb95c052a6a8f31ee1892332e7 /lopcodes.c
parent5440b42f434ecb6fe7a8e0d19fb8e8baf82e90b7 (diff)
downloadlua-github-4c0e36a46e11be2f101203ed0db66ea750bf4333.tar.gz
new instruction 'OP_EQK' (for equality with constants)
Diffstat (limited to 'lopcodes.c')
-rw-r--r--lopcodes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lopcodes.c b/lopcodes.c
index 6ea54d09..87408752 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -1,5 +1,5 @@
/*
-** $Id: lopcodes.c,v 1.66 2017/10/04 15:49:24 roberto Exp roberto $
+** $Id: lopcodes.c,v 1.67 2017/11/07 17:20:42 roberto Exp roberto $
** Opcodes for Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -66,6 +66,7 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
"EQ",
"LT",
"LE",
+ "EQK",
"TEST",
"TESTSET",
"CALL",
@@ -133,6 +134,7 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
,opmode(1, 0, iABC) /* OP_EQ */
,opmode(1, 0, iABC) /* OP_LT */
,opmode(1, 0, iABC) /* OP_LE */
+ ,opmode(1, 0, iABC) /* OP_EQK */
,opmode(1, 0, iABC) /* OP_TEST */
,opmode(1, 1, iABC) /* OP_TESTSET */
,opmode(0, 1, iABC) /* OP_CALL */