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-28d47a0aaa646f8762085cc7fcf8953b62df0927.tar.gz
lua-28d47a0aaa646f8762085cc7fcf8953b62df0927.tar.bz2
lua-28d47a0aaa646f8762085cc7fcf8953b62df0927.zip
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 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.4 1997/09/22 20:53:20 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.5 1997/09/24 19:43:11 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*/
@@ -76,6 +76,7 @@ GETTABLE,/* i t t[i] */
76PUSHSELFB,/* b t t t[CNST[b]] */ 76PUSHSELFB,/* b t t t[CNST[b]] */
77PUSHSELF,/* w t t t[CNST[w]] */ 77PUSHSELF,/* w t t t[CNST[w]] */
78 78
79CREATEARRAYB,/* b - newarray(size = b) */
79CREATEARRAY,/* w - newarray(size = w) */ 80CREATEARRAY,/* w - newarray(size = w) */
80 81
81SETLOCAL0,/* x - LOC[0]=x */ 82SETLOCAL0,/* x - LOC[0]=x */
@@ -118,10 +119,12 @@ NOTOP,/* x (x==nil)? 1 : nil */
118/* NOTICE: all jumps are relative to the position following the opcode */ 119/* NOTICE: all jumps are relative to the position following the opcode */
119ONTJMP,/* b x (x!=nil)? x : - (x!=nil)? PC+=b */ 120ONTJMP,/* b x (x!=nil)? x : - (x!=nil)? PC+=b */
120ONFJMP,/* b x (x==nil)? x : - (x==nil)? PC+=b */ 121ONFJMP,/* b x (x==nil)? x : - (x==nil)? PC+=b */
122JMPB,/* b - - PC+=b */
121JMP,/* w - - PC+=w */ 123JMP,/* w - - PC+=w */
122UPJMPB,/* b - - PC-=b */ 124IFFJMPB,/* b x - (x==nil)? PC+=b */
123UPJMP,/* w - - PC-=w */
124IFFJMP,/* w x - (x==nil)? PC+=w */ 125IFFJMP,/* w x - (x==nil)? PC+=w */
126IFTUPJMPB,/* b x - (x!=nil)? PC-=b */
127IFTUPJMP,/* w x - (x!=nil)? PC-=w */
125IFFUPJMPB,/* b x - (x==nil)? PC-=b */ 128IFFUPJMPB,/* b x - (x==nil)? PC-=b */
126IFFUPJMP,/* w x - (x==nil)? PC-=w */ 129IFFUPJMP,/* w x - (x==nil)? PC-=w */
127 130