diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-01-25 19:50:39 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-01-25 19:50:39 -0200 |
| commit | 74907fb71e69949d63d94c4c12b80938c974a6df (patch) | |
| tree | 6093d5e5af4870fe2600eff5815d5db96969c979 /lopcodes.h | |
| parent | b38e594ed738238d352bb5344446ef07d15510b4 (diff) | |
| download | lua-74907fb71e69949d63d94c4c12b80938c974a6df.tar.gz lua-74907fb71e69949d63d94c4c12b80938c974a6df.tar.bz2 lua-74907fb71e69949d63d94c4c12b80938c974a6df.zip | |
OP_LOADINT can be done by OP_LOADK
Diffstat (limited to 'lopcodes.h')
| -rw-r--r-- | lopcodes.h | 6 |
1 files changed, 1 insertions, 5 deletions
| @@ -129,7 +129,6 @@ name args description | |||
| 129 | ------------------------------------------------------------------------*/ | 129 | ------------------------------------------------------------------------*/ |
| 130 | OP_MOVE,/* A B R(A) := R(B) */ | 130 | OP_MOVE,/* A B R(A) := R(B) */ |
| 131 | OP_LOADK,/* A Bc R(A) := Kst(Bc) */ | 131 | OP_LOADK,/* A Bc R(A) := Kst(Bc) */ |
| 132 | OP_LOADINT,/* A sBc R(A) := (Number)sBc */ | ||
| 133 | OP_LOADBOOL,/* A B C R(A) := (Bool)B; if (C) PC++ */ | 132 | OP_LOADBOOL,/* A B C R(A) := (Bool)B; if (C) PC++ */ |
| 134 | OP_LOADNIL,/* A B R(A) := ... := R(B) := nil */ | 133 | OP_LOADNIL,/* A B R(A) := ... := R(B) := nil */ |
| 135 | OP_GETUPVAL,/* A B R(A) := UpValue[B] */ | 134 | OP_GETUPVAL,/* A B R(A) := UpValue[B] */ |
| @@ -180,10 +179,7 @@ OP_SETLIST,/* A Bc R(A)[Bc-Bc%FPF+i] := R(A+i), 1 <= i <= Bc%FPF+1 */ | |||
| 180 | OP_SETLISTO,/* A Bc */ | 179 | OP_SETLISTO,/* A Bc */ |
| 181 | 180 | ||
| 182 | OP_CLOSE,/* A close all variables in the stack up to (>=) R(A)*/ | 181 | OP_CLOSE,/* A close all variables in the stack up to (>=) R(A)*/ |
| 183 | OP_CLOSURE /* A Bc R(A) := closure(KPROTO[Bc], R(A), ... ,R(A+n)) */ | 182 | OP_CLOSURE/* A Bc R(A) := closure(KPROTO[Bc], R(A), ... ,R(A+n)) */ |
| 184 | /*---------------------------------------------------------------------- | ||
| 185 | pseudo-instructions (interruptions): cannot occur in regular code | ||
| 186 | ------------------------------------------------------------------------*/ | ||
| 187 | } OpCode; | 183 | } OpCode; |
| 188 | 184 | ||
| 189 | 185 | ||
