diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-22 16:41:20 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-11-22 16:41:20 -0200 |
| commit | 41f2936d8f2ec3894e0ef013f6b9e8f6ea17c181 (patch) | |
| tree | 7796c2687563ed326aa977774406ca6569200a4f /lopcodes.c | |
| parent | 14c3aa12b5a609f45b9be49e11ee862f9193a014 (diff) | |
| download | lua-41f2936d8f2ec3894e0ef013f6b9e8f6ea17c181.tar.gz lua-41f2936d8f2ec3894e0ef013f6b9e8f6ea17c181.tar.bz2 lua-41f2936d8f2ec3894e0ef013f6b9e8f6ea17c181.zip | |
new opcode 'OP_EQI' for equality with immediate numbers
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.67 2017/11/07 17:20:42 roberto Exp roberto $ | 2 | ** $Id: lopcodes.c,v 1.68 2017/11/16 12:59:14 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 | */ |
| @@ -67,6 +67,7 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { | |||
| 67 | "LT", | 67 | "LT", |
| 68 | "LE", | 68 | "LE", |
| 69 | "EQK", | 69 | "EQK", |
| 70 | "EQI", | ||
| 70 | "TEST", | 71 | "TEST", |
| 71 | "TESTSET", | 72 | "TESTSET", |
| 72 | "CALL", | 73 | "CALL", |
| @@ -135,6 +136,7 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { | |||
| 135 | ,opmode(1, 0, iABC) /* OP_LT */ | 136 | ,opmode(1, 0, iABC) /* OP_LT */ |
| 136 | ,opmode(1, 0, iABC) /* OP_LE */ | 137 | ,opmode(1, 0, iABC) /* OP_LE */ |
| 137 | ,opmode(1, 0, iABC) /* OP_EQK */ | 138 | ,opmode(1, 0, iABC) /* OP_EQK */ |
| 139 | ,opmode(1, 0, iABC) /* OP_EQI */ | ||
| 138 | ,opmode(1, 0, iABC) /* OP_TEST */ | 140 | ,opmode(1, 0, iABC) /* OP_TEST */ |
| 139 | ,opmode(1, 1, iABC) /* OP_TESTSET */ | 141 | ,opmode(1, 1, iABC) /* OP_TESTSET */ |
| 140 | ,opmode(0, 1, iABC) /* OP_CALL */ | 142 | ,opmode(0, 1, iABC) /* OP_CALL */ |
