From 72a094bda7d71050a91a88474d67d39aa2bc1c46 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 29 Aug 2019 12:52:37 -0300 Subject: 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. --- ltm.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'ltm.c') diff --git a/ltm.c b/ltm.c index 991e62c1..1e32d86a 100644 --- a/ltm.c +++ b/ltm.c @@ -147,7 +147,6 @@ static int callbinTM (lua_State *L, const TValue *p1, const TValue *p2, void luaT_trybinTM (lua_State *L, const TValue *p1, const TValue *p2, StkId res, TMS event) { - L->top = L->ci->top; if (!callbinTM(L, p1, p2, res, event)) { switch (event) { case TM_BAND: case TM_BOR: case TM_BXOR: @@ -191,7 +190,6 @@ void luaT_trybiniTM (lua_State *L, const TValue *p1, lua_Integer i2, int luaT_callorderTM (lua_State *L, const TValue *p1, const TValue *p2, TMS event) { - L->top = L->ci->top; if (callbinTM(L, p1, p2, L->top, event)) /* try original event */ return !l_isfalse(s2v(L->top)); #if defined(LUA_COMPAT_LT_LE) -- cgit v1.2.3-55-g6feb