diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-16 10:59:14 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-16 10:59:14 -0200 |
| commit | 4c0e36a46e11be2f101203ed0db66ea750bf4333 (patch) | |
| tree | 625e7be62fc7d9eb95c052a6a8f31ee1892332e7 /lopcodes.c | |
| parent | 5440b42f434ecb6fe7a8e0d19fb8e8baf82e90b7 (diff) | |
| download | lua-4c0e36a46e11be2f101203ed0db66ea750bf4333.tar.gz lua-4c0e36a46e11be2f101203ed0db66ea750bf4333.tar.bz2 lua-4c0e36a46e11be2f101203ed0db66ea750bf4333.zip | |
new instruction 'OP_EQK' (for equality with constants)
Diffstat (limited to 'lopcodes.c')
| -rw-r--r-- | lopcodes.c | 4 |
1 files changed, 3 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lopcodes.c,v 1.66 2017/10/04 15:49:24 roberto Exp roberto $ | 2 | ** $Id: lopcodes.c,v 1.67 2017/11/07 17:20:42 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 | */ |
| @@ -66,6 +66,7 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { | |||
| 66 | "EQ", | 66 | "EQ", |
| 67 | "LT", | 67 | "LT", |
| 68 | "LE", | 68 | "LE", |
| 69 | "EQK", | ||
| 69 | "TEST", | 70 | "TEST", |
| 70 | "TESTSET", | 71 | "TESTSET", |
| 71 | "CALL", | 72 | "CALL", |
| @@ -133,6 +134,7 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { | |||
| 133 | ,opmode(1, 0, iABC) /* OP_EQ */ | 134 | ,opmode(1, 0, iABC) /* OP_EQ */ |
| 134 | ,opmode(1, 0, iABC) /* OP_LT */ | 135 | ,opmode(1, 0, iABC) /* OP_LT */ |
| 135 | ,opmode(1, 0, iABC) /* OP_LE */ | 136 | ,opmode(1, 0, iABC) /* OP_LE */ |
| 137 | ,opmode(1, 0, iABC) /* OP_EQK */ | ||
| 136 | ,opmode(1, 0, iABC) /* OP_TEST */ | 138 | ,opmode(1, 0, iABC) /* OP_TEST */ |
| 137 | ,opmode(1, 1, iABC) /* OP_TESTSET */ | 139 | ,opmode(1, 1, iABC) /* OP_TESTSET */ |
| 138 | ,opmode(0, 1, iABC) /* OP_CALL */ | 140 | ,opmode(0, 1, iABC) /* OP_CALL */ |
