aboutsummaryrefslogtreecommitdiff
path: root/lopcodes.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-05 15:03:15 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-07-05 15:03:15 -0300
commite888976bc6ba5592fb8ab8ecc04a8f63e217aa74 (patch)
treeae0a03f16d413e6a901c6a5f64058264974672fb /lopcodes.h
parent4d46289331395a845c5de1f6c0e0fe873c50db4f (diff)
downloadlua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.tar.gz
lua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.tar.bz2
lua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.zip
Details (typos in comments)
Diffstat (limited to 'lopcodes.h')
-rw-r--r--lopcodes.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lopcodes.h b/lopcodes.h
index a314dcd1..7bbbb0e5 100644
--- a/lopcodes.h
+++ b/lopcodes.h
@@ -286,9 +286,9 @@ OP_RETURN,/* A B C return R(A), ... ,R(A+B-2) (see note) */
286OP_RETURN0,/* return */ 286OP_RETURN0,/* return */
287OP_RETURN1,/* A return R(A) */ 287OP_RETURN1,/* A return R(A) */
288 288
289OP_FORLOOP,/* A Bx R(A)+=R(A+2); 289OP_FORLOOP,/* A Bx update counters; if loop continues then pc-=Bx; */
290 if R(A) <?= R(A+1) then { pc-=Bx; R(A+3)=R(A) } */ 290OP_FORPREP,/* A Bx <check values and prepare counters>;
291OP_FORPREP,/* A Bx R(A)-=R(A+2); pc+=Bx */ 291 if not to run then pc+=Bx+1; */
292 292
293OP_TFORPREP,/* A Bx create upvalue for R(A + 3); pc+=Bx */ 293OP_TFORPREP,/* A Bx create upvalue for R(A + 3); pc+=Bx */
294OP_TFORCALL,/* A C R(A+4), ... ,R(A+3+C) := R(A)(R(A+1), R(A+2)); */ 294OP_TFORCALL,/* A C R(A+4), ... ,R(A+3+C) := R(A)(R(A+1), R(A+2)); */