summaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-10-01 17:05:34 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-10-01 17:05:34 -0300
commit28d47a0aaa646f8762085cc7fcf8953b62df0927 (patch)
treebe44656bb1a639f82c24a013f0f9d44de22f77e0 /lopcodes.h
parenteb617df2d87f8476e722ade7319998d7912a6edf (diff)
downloadlua-github-28d47a0aaa646f8762085cc7fcf8953b62df0927.tar.gz
all jumps have byte variants; WHILE optimization
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/lopcodes.h b/lopcodes.h
index e1b95122..f6bf4818 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
/*
-** $Id: lopcodes.h,v 1.4 1997/09/22 20:53:20 roberto Exp roberto $
+** $Id: lopcodes.h,v 1.5 1997/09/24 19:43:11 roberto Exp roberto $
** Opcodes for Lua virtual machine
** See Copyright Notice in lua.h
*/
@@ -76,6 +76,7 @@ GETTABLE,/* i t t[i] */
PUSHSELFB,/* b t t t[CNST[b]] */
PUSHSELF,/* w t t t[CNST[w]] */
+CREATEARRAYB,/* b - newarray(size = b) */
CREATEARRAY,/* w - newarray(size = w) */
SETLOCAL0,/* x - LOC[0]=x */
@@ -118,10 +119,12 @@ NOTOP,/* x (x==nil)? 1 : nil */
/* NOTICE: all jumps are relative to the position following the opcode */
ONTJMP,/* b x (x!=nil)? x : - (x!=nil)? PC+=b */
ONFJMP,/* b x (x==nil)? x : - (x==nil)? PC+=b */
+JMPB,/* b - - PC+=b */
JMP,/* w - - PC+=w */
-UPJMPB,/* b - - PC-=b */
-UPJMP,/* w - - PC-=w */
+IFFJMPB,/* b x - (x==nil)? PC+=b */
IFFJMP,/* w x - (x==nil)? PC+=w */
+IFTUPJMPB,/* b x - (x!=nil)? PC-=b */
+IFTUPJMP,/* w x - (x!=nil)? PC-=w */
IFFUPJMPB,/* b x - (x==nil)? PC-=b */
IFFUPJMP,/* w x - (x==nil)? PC-=w */