aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-16 10:59:14 -0200
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-11-16 10:59:14 -0200
commit4c0e36a46e11be2f101203ed0db66ea750bf4333 (patch)
tree625e7be62fc7d9eb95c052a6a8f31ee1892332e7 /lopcodes.h
parent5440b42f434ecb6fe7a8e0d19fb8e8baf82e90b7 (diff)
downloadlua-4c0e36a46e11be2f101203ed0db66ea750bf4333.tar.gz
lua-4c0e36a46e11be2f101203ed0db66ea750bf4333.tar.bz2
lua-4c0e36a46e11be2f101203ed0db66ea750bf4333.zip
new instruction 'OP_EQK' (for equality with constants)
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index bc8d722f..a805ba63 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.166 2017/10/04 21:56:32 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.167 2017/11/07 17:20:42 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*/
@@ -240,6 +240,8 @@ OP_EQ,/* A B C if ((R(B) == R(C)) ~= A) then pc++ */
240OP_LT,/* A B C if ((R(B) < R(C)) ~= A) then pc++ */ 240OP_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++ */
244
243OP_TEST,/* A C if not (R(A) <=> C) then pc++ */ 245OP_TEST,/* A C if not (R(A) <=> C) then pc++ */
244OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */ 246OP_TESTSET,/* A B C if (R(B) <=> C) then R(A) := R(B) else pc++ */
245 247