diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-08-14 15:33:14 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-08-14 15:33:14 -0300 |
commit | ac65bab25f1eaaf70e1826a6937a74b3a55b521b (patch) | |
tree | a8220432c19dde69af92e720008863f821d1ce96 /lopcodes.h | |
parent | f185c0132e09a5e0a32782c674de75b510f887d8 (diff) | |
download | lua-ac65bab25f1eaaf70e1826a6937a74b3a55b521b.tar.gz lua-ac65bab25f1eaaf70e1826a6937a74b3a55b521b.tar.bz2 lua-ac65bab25f1eaaf70e1826a6937a74b3a55b521b.zip |
jumps in 'for' loops don't need to be signed
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.h,v 1.154 2017/05/08 16:08:01 roberto Exp roberto $ | 2 | ** $Id: lopcodes.h,v 1.155 2017/06/29 15:38:41 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 | */ |
@@ -229,12 +229,12 @@ OP_CALL,/* A B C R(A), ... ,R(A+C-2) := R(A)(R(A+1), ... ,R(A+B-1)) */ | |||
229 | OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */ | 229 | OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */ |
230 | OP_RETURN,/* A B return R(A), ... ,R(A+B-2) (see note) */ | 230 | OP_RETURN,/* A B return R(A), ... ,R(A+B-2) (see note) */ |
231 | 231 | ||
232 | OP_FORLOOP,/* A sBx R(A)+=R(A+2); | 232 | OP_FORLOOP,/* A Bx R(A)+=R(A+2); |
233 | if R(A) <?= R(A+1) then { pc+=sBx; R(A+3)=R(A) }*/ | 233 | if R(A) <?= R(A+1) then { pc-=Bx; R(A+3)=R(A) }*/ |
234 | OP_FORPREP,/* A sBx R(A)-=R(A+2); pc+=sBx */ | 234 | OP_FORPREP,/* A Bx R(A)-=R(A+2); pc+=Bx */ |
235 | 235 | ||
236 | OP_TFORCALL,/* A C R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2)); */ | 236 | OP_TFORCALL,/* A C R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2)); */ |
237 | OP_TFORLOOP,/* A sBx if R(A+1) ~= nil then { R(A)=R(A+1); pc += sBx }*/ | 237 | OP_TFORLOOP,/* A Bx if R(A+1) ~= nil then { R(A)=R(A+1); pc -= Bx }*/ |
238 | 238 | ||
239 | OP_SETLIST,/* A B C R(A)[(C-1)*FPF+i] := R(A+i), 1 <= i <= B */ | 239 | OP_SETLIST,/* A B C R(A)[(C-1)*FPF+i] := R(A+i), 1 <= i <= B */ |
240 | 240 | ||