diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-10-04 16:01:53 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2004-10-04 16:01:53 -0300 |
| commit | 5ee87acd6b920a6a122277cd817aea4cfd618671 (patch) | |
| tree | 5e931c1db32c2be6378fde498ffcc5ee9dec0d6a /lopcodes.c | |
| parent | 5d834bdf571ef3ee343b21fde2d49de1e4ea08b4 (diff) | |
| download | lua-5ee87acd6b920a6a122277cd817aea4cfd618671.tar.gz lua-5ee87acd6b920a6a122277cd817aea4cfd618671.tar.bz2 lua-5ee87acd6b920a6a122277cd817aea4cfd618671.zip | |
small optimization for boolean constants + new format for SETLIST opcode
Diffstat (limited to 'lopcodes.c')
| -rw-r--r-- | lopcodes.c | 6 |
1 files changed, 2 insertions, 4 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lopcodes.c,v 1.27 2004/05/31 18:51:50 roberto Exp roberto $ | 2 | ** $Id: lopcodes.c,v 1.28 2004/07/16 13:15:32 roberto Exp $ |
| 3 | ** See Copyright Notice in lua.h | 3 | ** See Copyright Notice in lua.h |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| @@ -49,7 +49,6 @@ const char *const luaP_opnames[NUM_OPCODES] = { | |||
| 49 | "TFORLOOP", | 49 | "TFORLOOP", |
| 50 | "TFORPREP", | 50 | "TFORPREP", |
| 51 | "SETLIST", | 51 | "SETLIST", |
| 52 | "SETLISTO", | ||
| 53 | "CLOSE", | 52 | "CLOSE", |
| 54 | "CLOSURE", | 53 | "CLOSURE", |
| 55 | "VARARG" | 54 | "VARARG" |
| @@ -92,8 +91,7 @@ const lu_byte luaP_opmodes[NUM_OPCODES] = { | |||
| 92 | ,opmode(0, 1, OpArgR, OpArgN, iAsBx) /* OP_FORPREP */ | 91 | ,opmode(0, 1, OpArgR, OpArgN, iAsBx) /* OP_FORPREP */ |
| 93 | ,opmode(1, 0, OpArgN, OpArgU, iABC) /* OP_TFORLOOP */ | 92 | ,opmode(1, 0, OpArgN, OpArgU, iABC) /* OP_TFORLOOP */ |
| 94 | ,opmode(0, 0, OpArgR, OpArgN, iAsBx) /* OP_TFORPREP */ | 93 | ,opmode(0, 0, OpArgR, OpArgN, iAsBx) /* OP_TFORPREP */ |
| 95 | ,opmode(0, 0, OpArgU, OpArgN, iABx) /* OP_SETLIST */ | 94 | ,opmode(0, 0, OpArgU, OpArgU, iABC) /* OP_SETLIST */ |
| 96 | ,opmode(0, 0, OpArgU, OpArgN, iABx) /* OP_SETLISTO */ | ||
| 97 | ,opmode(0, 0, OpArgN, OpArgN, iABC) /* OP_CLOSE */ | 95 | ,opmode(0, 0, OpArgN, OpArgN, iABC) /* OP_CLOSE */ |
| 98 | ,opmode(0, 1, OpArgU, OpArgN, iABx) /* OP_CLOSURE */ | 96 | ,opmode(0, 1, OpArgU, OpArgN, iABx) /* OP_CLOSURE */ |
| 99 | ,opmode(0, 1, OpArgU, OpArgN, iABC) /* OP_VARARG */ | 97 | ,opmode(0, 1, OpArgU, OpArgN, iABC) /* OP_VARARG */ |
