aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-03-07 12:55:38 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2018-03-07 12:55:38 -0300
commit4a1612ff9b968fe446bc4dd20460bfaccabeb3b3 (patch)
treeaef8f8c476e0814c357ead6248a614fb0ca07eac /lopcodes.h
parent464658b16a1a539fd590e1696bfcfb572a77fe13 (diff)
downloadlua-4a1612ff9b968fe446bc4dd20460bfaccabeb3b3.tar.gz
lua-4a1612ff9b968fe446bc4dd20460bfaccabeb3b3.tar.bz2
lua-4a1612ff9b968fe446bc4dd20460bfaccabeb3b3.zip
new experimental syntax using reserved word 'undef'
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lopcodes.h b/lopcodes.h
index be7359e9..ddbaf8da 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.188 2018/02/15 15:34:29 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.189 2018/02/21 15:49:32 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*/
@@ -266,6 +266,9 @@ OP_GEI,/* A sB if ((R(A) >= sB) ~= k) then pc++ */
266OP_TEST,/* A if (not R(A) == k) then pc++ */ 266OP_TEST,/* A if (not R(A) == k) then pc++ */
267OP_TESTSET,/* A B if (not R(B) == k) then R(A) := R(B) else pc++ */ 267OP_TESTSET,/* A B if (not R(B) == k) then R(A) := R(B) else pc++ */
268 268
269OP_UNDEF,/* A B R(A)[R(B)] = undef */
270OP_ISDEF,/* A B C R(A) = (R(B)[R(C)] == undef */
271
269OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */ 272OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */
270OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */ 273OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */
271 274