aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-02 09:32:53 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2000-03-02 09:32:53 -0300
commitfa14cbf8e83c771da66e33730b85047381f5042b (patch)
tree951f1d8e103de1f683553b39312dfb9fdbc6f532
parent4d4e6f07c022f94999c52fb593a20fce85c5092a (diff)
downloadlua-fa14cbf8e83c771da66e33730b85047381f5042b.tar.gz
lua-fa14cbf8e83c771da66e33730b85047381f5042b.tar.bz2
lua-fa14cbf8e83c771da66e33730b85047381f5042b.zip
comments
-rw-r--r--lopcodes.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/lopcodes.h b/lopcodes.h
index f41b35f2..16f22d45 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -1,5 +1,5 @@
1/* 1/*
2** $Id: lopcodes.h,v 1.40 2000/02/14 16:51:08 roberto Exp roberto $ 2** $Id: lopcodes.h,v 1.41 2000/02/22 13:30: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*/
@@ -50,6 +50,8 @@
50/* 50/*
51** K = U argument used as index to `kstr' 51** K = U argument used as index to `kstr'
52** J = S argument used as jump offset (relative to pc of next instruction) 52** J = S argument used as jump offset (relative to pc of next instruction)
53** L = U argument used as index of local variable
54** N = U argument used as index to `knum'
53*/ 55*/
54 56
55typedef enum { 57typedef enum {
@@ -66,13 +68,13 @@ POP,/* U a_u-a_1 - */
66 68
67PUSHINT,/* S - (real)s */ 69PUSHINT,/* S - (real)s */
68PUSHSTRING,/* K - KSTR[k] */ 70PUSHSTRING,/* K - KSTR[k] */
69PUSHNUM,/* U - KNUM[u] */ 71PUSHNUM,/* N - KNUM[u] */
70PUSHNEGNUM,/* U - -KNUM[u] */ 72PUSHNEGNUM,/* N - -KNUM[u] */
71 73
72PUSHUPVALUE,/* U - Closure[u] */ 74PUSHUPVALUE,/* U - Closure[u] */
73 75
74PUSHLOCAL,/* U - LOC[u] */ 76PUSHLOCAL,/* L - LOC[u] */
75GETGLOBAL,/* K - VAR[CNST[k]] */ 77GETGLOBAL,/* K - VAR[KSTR[k]] */
76 78
77GETTABLE,/* - i t t[i] */ 79GETTABLE,/* - i t t[i] */
78GETDOTTED,/* K t t[KSTR[k]] */ 80GETDOTTED,/* K t t[KSTR[k]] */
@@ -80,7 +82,7 @@ PUSHSELF,/* K t t t[KSTR[k]] */
80 82
81CREATETABLE,/* U - newarray(size = u) */ 83CREATETABLE,/* U - newarray(size = u) */
82 84
83SETLOCAL,/* U x - LOC[u]=x */ 85SETLOCAL,/* L x - LOC[u]=x */
84SETGLOBAL,/* K x - VAR[KSTR[k]]=x */ 86SETGLOBAL,/* K x - VAR[KSTR[k]]=x */
85SETTABLEPOP,/* - v i t - t[i]=v */ 87SETTABLEPOP,/* - v i t - t[i]=v */
86SETTABLE,/* U v a_u-a_1 i t a_u-a_1 i t t[i]=v */ 88SETTABLE,/* U v a_u-a_1 i t a_u-a_1 i t t[i]=v */