diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-15 13:34:29 -0200 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2018-02-15 13:34:29 -0200 |
commit | 0682fe816929da2e5abe8e191ad9c8509e6bfc12 (patch) | |
tree | bac8b079fde63e7f2e436e51ed6fd571dfd6f195 /lopcodes.c | |
parent | b1379936cf35787d3ef3aab82d1607a3e1562eef (diff) | |
download | lua-0682fe816929da2e5abe8e191ad9c8509e6bfc12.tar.gz lua-0682fe816929da2e5abe8e191ad9c8509e6bfc12.tar.bz2 lua-0682fe816929da2e5abe8e191ad9c8509e6bfc12.zip |
some simplifications/optimizations in returns from Lua functions
Diffstat (limited to 'lopcodes.c')
-rw-r--r-- | lopcodes.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lopcodes.c,v 1.76 2018/02/07 15:18:04 roberto Exp roberto $ | 2 | ** $Id: lopcodes.c,v 1.77 2018/02/09 15:16:06 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 | */ |
@@ -80,7 +80,6 @@ LUAI_DDEF const char *const luaP_opnames[NUM_OPCODES+1] = { | |||
80 | "CALL", | 80 | "CALL", |
81 | "TAILCALL", | 81 | "TAILCALL", |
82 | "RETURN", | 82 | "RETURN", |
83 | "RETVARARG", | ||
84 | "RETURN0", | 83 | "RETURN0", |
85 | "RETURN1", | 84 | "RETURN1", |
86 | "FORLOOP1", | 85 | "FORLOOP1", |
@@ -162,7 +161,6 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = { | |||
162 | ,opmode(1, 1, 0, 1, iABC) /* OP_CALL */ | 161 | ,opmode(1, 1, 0, 1, iABC) /* OP_CALL */ |
163 | ,opmode(1, 1, 0, 1, iABC) /* OP_TAILCALL */ | 162 | ,opmode(1, 1, 0, 1, iABC) /* OP_TAILCALL */ |
164 | ,opmode(0, 1, 0, 0, iABC) /* OP_RETURN */ | 163 | ,opmode(0, 1, 0, 0, iABC) /* OP_RETURN */ |
165 | ,opmode(0, 1, 0, 0, iABC) /* OP_RETVARARG */ | ||
166 | ,opmode(0, 0, 0, 0, iABC) /* OP_RETURN0 */ | 164 | ,opmode(0, 0, 0, 0, iABC) /* OP_RETURN0 */ |
167 | ,opmode(0, 0, 0, 0, iABC) /* OP_RETURN1 */ | 165 | ,opmode(0, 0, 0, 0, iABC) /* OP_RETURN1 */ |
168 | ,opmode(0, 0, 0, 1, iABx) /* OP_FORLOOP1 */ | 166 | ,opmode(0, 0, 0, 1, iABx) /* OP_FORLOOP1 */ |