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.h | |
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.h')
-rw-r--r-- | lopcodes.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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++ */ | |||
241 | OP_LE,/* A B C if ((R(B) <= R(C)) ~= A) then pc++ */ | 241 | OP_LE,/* A B C if ((R(B) <= R(C)) ~= A) then pc++ */ |
242 | 242 | ||
243 | OP_EQK,/* A B C if ((R(B) == K(C)) ~= A) then pc++ */ | 243 | OP_EQK,/* A B C if ((R(B) == K(C)) ~= A) then pc++ */ |
244 | OP_EQI,/* A B C if ((R(B) == C) ~= A) then pc++ */ | ||
244 | 245 | ||
245 | OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ | 246 | OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ |
246 | OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ | 247 | OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ |