aboutsummaryrefslogtreecommitdiff
path: root/lobject.c
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-08-29 12:52:37 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2019-08-29 12:52:37 -0300
commit72a094bda7d71050a91a88474d67d39aa2bc1c46 (patch)
treeb14358bae6d5e0ba4a4d2c2bf515d82d8cf25b40 /lobject.c
parent46b84580d6d7890f4ba813f312e52514fffc38a7 (diff)
downloadlua-72a094bda7d71050a91a88474d67d39aa2bc1c46.tar.gz
lua-72a094bda7d71050a91a88474d67d39aa2bc1c46.tar.bz2
lua-72a094bda7d71050a91a88474d67d39aa2bc1c46.zip
Undo change in the handling of 'L->top' (commit b80077b8f3)
With MMBIN instructions, there are fewer opcodes that need to update 'L->top', so that change does not seem to pay for the increased complexity.
Diffstat (limited to 'lobject.c')
-rw-r--r--lobject.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lobject.c b/lobject.c
index b376ab15..b4efae4f 100644
--- a/lobject.c
+++ b/lobject.c
@@ -127,9 +127,7 @@ void luaO_arith (lua_State *L, int op, const TValue *p1, const TValue *p2,
127 StkId res) { 127 StkId res) {
128 if (!luaO_rawarith(L, op, p1, p2, s2v(res))) { 128 if (!luaO_rawarith(L, op, p1, p2, s2v(res))) {
129 /* could not perform raw operation; try metamethod */ 129 /* could not perform raw operation; try metamethod */
130 ptrdiff_t top = savestack(L, L->top);
131 luaT_trybinTM(L, p1, p2, res, cast(TMS, (op - LUA_OPADD) + TM_ADD)); 130 luaT_trybinTM(L, p1, p2, res, cast(TMS, (op - LUA_OPADD) + TM_ADD));
132 L->top = restorestack(L, top);
133 } 131 }
134} 132}
135 133