diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-04 15:41:30 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-04 15:41:30 -0200 |
| commit | c7ee7fe026aa2247377bdd7915089a8e0074de1a (patch) | |
| tree | 6c76f673032ede69516fc1c19c98e0d9a26d778d /lopcodes.c | |
| parent | 421e459684f7fdf483454d99c048b47783cb0611 (diff) | |
| download | lua-c7ee7fe026aa2247377bdd7915089a8e0074de1a.tar.gz lua-c7ee7fe026aa2247377bdd7915089a8e0074de1a.tar.bz2 lua-c7ee7fe026aa2247377bdd7915089a8e0074de1a.zip | |
new opcodes OP_SHLI/OP_SHRI
Diffstat (limited to '')
| -rw-r--r-- | lopcodes.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -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 */ |
