From 41f2936d8f2ec3894e0ef013f6b9e8f6ea17c181 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Wed, 22 Nov 2017 16:41:20 -0200 Subject: new opcode 'OP_EQI' for equality with immediate numbers --- lopcodes.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lopcodes.h') diff --git a/lopcodes.h b/lopcodes.h index a805ba63..6829711c 100644 --- a/lopcodes.h +++ b/lopcodes.h @@ -1,5 +1,5 @@ /* -** $Id: lopcodes.h,v 1.167 2017/11/07 17:20:42 roberto Exp roberto $ +** $Id: lopcodes.h,v 1.168 2017/11/16 12:59:14 roberto Exp roberto $ ** Opcodes for Lua virtual machine ** See Copyright Notice in lua.h */ @@ -241,6 +241,7 @@ OP_LT,/* A B C if ((R(B) < R(C)) ~= A) then pc++ */ OP_LE,/* A B C if ((R(B) <= R(C)) ~= A) then pc++ */ OP_EQK,/* A B C if ((R(B) == K(C)) ~= A) then pc++ */ +OP_EQI,/* A B C if ((R(B) == C) ~= A) then pc++ */ OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ -- cgit v1.2.3-55-g6feb