diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-18 15:53:50 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-12-18 15:53:50 -0200 |
commit | d388c165ef79cb9c668e28fa92242ffbc0430e54 (patch) | |
tree | c10d2aee1d049d9c430ac9bebe810e9e733a8acb /lopcodes.c | |
parent | ab07005568a399f2e97996677472d9e6e69c9f4f (diff) | |
download | lua-d388c165ef79cb9c668e28fa92242ffbc0430e54.tar.gz lua-d388c165ef79cb9c668e28fa92242ffbc0430e54.tar.bz2 lua-d388c165ef79cb9c668e28fa92242ffbc0430e54.zip |
new opcodes 'FORLOOP1'/'FORPREP1' for "basic for" (integer variable
with increment of 1)
Diffstat (limited to 'lopcodes.c')
-rw-r--r-- | lopcodes.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.c,v 1.72 2017/12/04 17:41:30 roberto Exp roberto $ | 2 | ** $Id: lopcodes.c,v 1.73 2017/12/13 18:32:09 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 | */ |
@@ -82,6 +82,8 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { | |||
82 | "RETURN", | 82 | "RETURN", |
83 | "RETURN0", | 83 | "RETURN0", |
84 | "RETURN1", | 84 | "RETURN1", |
85 | "FORLOOP1", | ||
86 | "FORPREP1", | ||
85 | "FORLOOP", | 87 | "FORLOOP", |
86 | "FORPREP", | 88 | "FORPREP", |
87 | "TFORCALL", | 89 | "TFORCALL", |
@@ -160,6 +162,8 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { | |||
160 | ,opmode(0, 0, iABC) /* OP_RETURN */ | 162 | ,opmode(0, 0, iABC) /* OP_RETURN */ |
161 | ,opmode(0, 0, iABC) /* OP_RETURN0 */ | 163 | ,opmode(0, 0, iABC) /* OP_RETURN0 */ |
162 | ,opmode(0, 0, iABC) /* OP_RETURN1 */ | 164 | ,opmode(0, 0, iABC) /* OP_RETURN1 */ |
165 | ,opmode(0, 1, iABx) /* OP_FORLOOP1 */ | ||
166 | ,opmode(0, 1, iABx) /* OP_FORPREP1 */ | ||
163 | ,opmode(0, 1, iABx) /* OP_FORLOOP */ | 167 | ,opmode(0, 1, iABx) /* OP_FORLOOP */ |
164 | ,opmode(0, 1, iABx) /* OP_FORPREP */ | 168 | ,opmode(0, 1, iABx) /* OP_FORPREP */ |
165 | ,opmode(0, 0, iABC) /* OP_TFORCALL */ | 169 | ,opmode(0, 0, iABC) /* OP_TFORCALL */ |