aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-04 15:41:30 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-12-04 15:41:30 -0200
commitc7ee7fe026aa2247377bdd7915089a8e0074de1a (patch)
tree6c76f673032ede69516fc1c19c98e0d9a26d778d /lopcodes.c
parent421e459684f7fdf483454d99c048b47783cb0611 (diff)
downloadlua-c7ee7fe026aa2247377bdd7915089a8e0074de1a.tar.gz
lua-c7ee7fe026aa2247377bdd7915089a8e0074de1a.tar.bz2
lua-c7ee7fe026aa2247377bdd7915089a8e0074de1a.zip
new opcodes OP_SHLI/OP_SHRI
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 1b081639..55b6050d 100644
--- a/lopcodes.c
+++ b/lopcodes.c
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.c,v 1.70 2017/11/27 17:44:31 roberto Exp roberto $ 2** $Id: lopcodes.c,v 1.71 2017/11/29 16:57:36 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*/
@@ -44,6 +44,8 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
44 "POWI", 44 "POWI",
45 "DIVI", 45 "DIVI",
46 "IDIVI", 46 "IDIVI",
47 "SHRI",
48 "SHLI",
47 "ADD", 49 "ADD",
48 "SUB", 50 "SUB",
49 "MUL", 51 "MUL",
@@ -117,6 +119,8 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
117 ,opmode(0, 1, iABC) /* OP_POWI */ 119 ,opmode(0, 1, iABC) /* OP_POWI */
118 ,opmode(0, 1, iABC) /* OP_DIVI */ 120 ,opmode(0, 1, iABC) /* OP_DIVI */
119 ,opmode(0, 1, iABC) /* OP_IDIVI */ 121 ,opmode(0, 1, iABC) /* OP_IDIVI */
122 ,opmode(0, 1, iABC) /* OP_SHRI */
123 ,opmode(0, 1, iABC) /* OP_SHLI */
120 ,opmode(0, 1, iABC) /* OP_ADD */ 124 ,opmode(0, 1, iABC) /* OP_ADD */
121 ,opmode(0, 1, iABC) /* OP_SUB */ 125 ,opmode(0, 1, iABC) /* OP_SUB */
122 ,opmode(0, 1, iABC) /* OP_MUL */ 126 ,opmode(0, 1, iABC) /* OP_MUL */