diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-02 09:32:53 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-03-02 09:32:53 -0300 |
commit | fa14cbf8e83c771da66e33730b85047381f5042b (patch) | |
tree | 951f1d8e103de1f683553b39312dfb9fdbc6f532 | |
parent | 4d4e6f07c022f94999c52fb593a20fce85c5092a (diff) | |
download | lua-fa14cbf8e83c771da66e33730b85047381f5042b.tar.gz lua-fa14cbf8e83c771da66e33730b85047381f5042b.tar.bz2 lua-fa14cbf8e83c771da66e33730b85047381f5042b.zip |
comments
-rw-r--r-- | lopcodes.h | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 | ||
55 | typedef enum { | 57 | typedef enum { |
@@ -66,13 +68,13 @@ POP,/* U a_u-a_1 - */ | |||
66 | 68 | ||
67 | PUSHINT,/* S - (real)s */ | 69 | PUSHINT,/* S - (real)s */ |
68 | PUSHSTRING,/* K - KSTR[k] */ | 70 | PUSHSTRING,/* K - KSTR[k] */ |
69 | PUSHNUM,/* U - KNUM[u] */ | 71 | PUSHNUM,/* N - KNUM[u] */ |
70 | PUSHNEGNUM,/* U - -KNUM[u] */ | 72 | PUSHNEGNUM,/* N - -KNUM[u] */ |
71 | 73 | ||
72 | PUSHUPVALUE,/* U - Closure[u] */ | 74 | PUSHUPVALUE,/* U - Closure[u] */ |
73 | 75 | ||
74 | PUSHLOCAL,/* U - LOC[u] */ | 76 | PUSHLOCAL,/* L - LOC[u] */ |
75 | GETGLOBAL,/* K - VAR[CNST[k]] */ | 77 | GETGLOBAL,/* K - VAR[KSTR[k]] */ |
76 | 78 | ||
77 | GETTABLE,/* - i t t[i] */ | 79 | GETTABLE,/* - i t t[i] */ |
78 | GETDOTTED,/* K t t[KSTR[k]] */ | 80 | GETDOTTED,/* K t t[KSTR[k]] */ |
@@ -80,7 +82,7 @@ PUSHSELF,/* K t t t[KSTR[k]] */ | |||
80 | 82 | ||
81 | CREATETABLE,/* U - newarray(size = u) */ | 83 | CREATETABLE,/* U - newarray(size = u) */ |
82 | 84 | ||
83 | SETLOCAL,/* U x - LOC[u]=x */ | 85 | SETLOCAL,/* L x - LOC[u]=x */ |
84 | SETGLOBAL,/* K x - VAR[KSTR[k]]=x */ | 86 | SETGLOBAL,/* K x - VAR[KSTR[k]]=x */ |
85 | SETTABLEPOP,/* - v i t - t[i]=v */ | 87 | SETTABLEPOP,/* - v i t - t[i]=v */ |
86 | SETTABLE,/* U v a_u-a_1 i t a_u-a_1 i t t[i]=v */ | 88 | SETTABLE,/* U v a_u-a_1 i t a_u-a_1 i t t[i]=v */ |