new opcode 'OP_EQI' for equality with immediate numbers

This commit is contained in:
Roberto Ierusalimschy
2017-11-22 16:41:20 -02:00
parent 14c3aa12b5
commit 41f2936d8f
4 changed files with 68 additions and 25 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lopcodes.c,v 1.67 2017/11/07 17:20:42 roberto Exp roberto $
** $Id: lopcodes.c,v 1.68 2017/11/16 12:59:14 roberto Exp roberto $
** Opcodes for Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -67,6 +67,7 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = {
"LT",
"LE",
"EQK",
"EQI",
"TEST",
"TESTSET",
"CALL",
@@ -135,6 +136,7 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
,opmode(1, 0, iABC) /* OP_LT */
,opmode(1, 0, iABC) /* OP_LE */
,opmode(1, 0, iABC) /* OP_EQK */
,opmode(1, 0, iABC) /* OP_EQI */
,opmode(1, 0, iABC) /* OP_TEST */
,opmode(1, 1, iABC) /* OP_TESTSET */
,opmode(0, 1, iABC) /* OP_CALL */