diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-05 15:03:15 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-07-05 15:03:15 -0300 |
commit | e888976bc6ba5592fb8ab8ecc04a8f63e217aa74 (patch) | |
tree | ae0a03f16d413e6a901c6a5f64058264974672fb /lopcodes.h | |
parent | 4d46289331395a845c5de1f6c0e0fe873c50db4f (diff) | |
download | lua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.tar.gz lua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.tar.bz2 lua-e888976bc6ba5592fb8ab8ecc04a8f63e217aa74.zip |
Details (typos in comments)
Diffstat (limited to 'lopcodes.h')
-rw-r--r-- | lopcodes.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -286,9 +286,9 @@ OP_RETURN,/* A B C return R(A), ... ,R(A+B-2) (see note) */ | |||
286 | OP_RETURN0,/* return */ | 286 | OP_RETURN0,/* return */ |
287 | OP_RETURN1,/* A return R(A) */ | 287 | OP_RETURN1,/* A return R(A) */ |
288 | 288 | ||
289 | OP_FORLOOP,/* A Bx R(A)+=R(A+2); | 289 | OP_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) } */ | 290 | OP_FORPREP,/* A Bx <check values and prepare counters>; |
291 | OP_FORPREP,/* A Bx R(A)-=R(A+2); pc+=Bx */ | 291 | if not to run then pc+=Bx+1; */ |
292 | 292 | ||
293 | OP_TFORPREP,/* A Bx create upvalue for R(A + 3); pc+=Bx */ | 293 | OP_TFORPREP,/* A Bx create upvalue for R(A + 3); pc+=Bx */ |
294 | OP_TFORCALL,/* A C R(A+4), ... ,R(A+3+C) := R(A)(R(A+1), R(A+2)); */ | 294 | OP_TFORCALL,/* A C R(A+4), ... ,R(A+3+C) := R(A)(R(A+1), R(A+2)); */ |