aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-08-14 15:33:14 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-08-14 15:33:14 -0300
commitac65bab25f1eaaf70e1826a6937a74b3a55b521b (patch)
treea8220432c19dde69af92e720008863f821d1ce96 /lopcodes.h
parentf185c0132e09a5e0a32782c674de75b510f887d8 (diff)
downloadlua-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.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/lopcodes.h b/lopcodes.h
index fb989ac6..f35de02a 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -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)) */
229OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */ 229OP_TAILCALL,/* A B C return R(A)(R(A+1), ... ,R(A+B-1)) */
230OP_RETURN,/* A B return R(A), ... ,R(A+B-2) (see note) */ 230OP_RETURN,/* A B return R(A), ... ,R(A+B-2) (see note) */
231 231
232OP_FORLOOP,/* A sBx R(A)+=R(A+2); 232OP_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) }*/
234OP_FORPREP,/* A sBx R(A)-=R(A+2); pc+=sBx */ 234OP_FORPREP,/* A Bx R(A)-=R(A+2); pc+=Bx */
235 235
236OP_TFORCALL,/* A C R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2)); */ 236OP_TFORCALL,/* A C R(A+3), ... ,R(A+2+C) := R(A)(R(A+1), R(A+2)); */
237OP_TFORLOOP,/* A sBx if R(A+1) ~= nil then { R(A)=R(A+1); pc += sBx }*/ 237OP_TFORLOOP,/* A Bx if R(A+1) ~= nil then { R(A)=R(A+1); pc -= Bx }*/
238 238
239OP_SETLIST,/* A B C R(A)[(C-1)*FPF+i] := R(A+i), 1 <= i <= B */ 239OP_SETLIST,/* A B C R(A)[(C-1)*FPF+i] := R(A+i), 1 <= i <= B */
240 240