new opcodes 'OP_LTI' and 'OP_LEI'

This commit is contained in:
Roberto Ierusalimschy
2017-11-27 15:44:31 -02:00
parent 599f1742c6
commit 093c16b67b
5 changed files with 71 additions and 12 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lopcodes.c,v 1.68 2017/11/16 12:59:14 roberto Exp roberto $
** $Id: lopcodes.c,v 1.69 2017/11/22 18:41:20 roberto Exp roberto $
** Opcodes for Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -68,6 +68,8 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
"LE",
"EQK",
"EQI",
"LTI",
"LEI",
"TEST",
"TESTSET",
"CALL",
@@ -137,6 +139,8 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
,opmode(1, 0, iABC) /* OP_LE */
,opmode(1, 0, iABC) /* OP_EQK */
,opmode(1, 0, iABC) /* OP_EQI */
,opmode(1, 0, iABC) /* OP_LTI */
,opmode(1, 0, iABC) /* OP_LEI */
,opmode(1, 0, iABC) /* OP_TEST */
,opmode(1, 1, iABC) /* OP_TESTSET */
,opmode(0, 1, iABC) /* OP_CALL */