aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-22 16:41:20 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-22 16:41:20 -0200
commit41f2936d8f2ec3894e0ef013f6b9e8f6ea17c181 (patch)
tree7796c2687563ed326aa977774406ca6569200a4f /lopcodes.h
parent14c3aa12b5a609f45b9be49e11ee862f9193a014 (diff)
downloadlua-41f2936d8f2ec3894e0ef013f6b9e8f6ea17c181.tar.gz
lua-41f2936d8f2ec3894e0ef013f6b9e8f6ea17c181.tar.bz2
lua-41f2936d8f2ec3894e0ef013f6b9e8f6ea17c181.zip
new opcode 'OP_EQI' for equality with immediate numbers
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index a805ba63..6829711c 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.167 2017/11/07 17:20:42 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.168 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*/
@@ -241,6 +241,7 @@ OP_LT,/* A B C if ((R(B) < R(C)) ~= A) then pc++ */
241OP_LE,/* A B C if ((R(B) <= R(C)) ~= A) then pc++ */ 241OP_LE,/* A B C if ((R(B) <= R(C)) ~= A) then pc++ */
242 242
243OP_EQK,/* A B C if ((R(B) == K(C)) ~= A) then pc++ */ 243OP_EQK,/* A B C if ((R(B) == K(C)) ~= A) then pc++ */
244OP_EQI,/* A B C if ((R(B) == C) ~= A) then pc++ */
244 245
245OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ 246OP_TEST,/* A C if not (R(A) <=> C) then pc++ */
246OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ 247OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */