From 78cc9c889d8df0ccdb15e1b63e7a5aa104c58b85 Mon Sep 17 00:00:00 2001 From: Mike Pall Date: Sun, 21 Aug 2011 15:08:27 +0200 Subject: [PATCH] Record missing FORI slot loads (e.g. after return to lower frame). --- src/lj_record.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lj_record.c b/src/lj_record.c index 0deaade1..35ec1456 100644 --- a/src/lj_record.c +++ b/src/lj_record.c @@ -435,6 +435,7 @@ static LoopEvent rec_for(jit_State *J, const BCIns *fori, int isforl) t = (LJ_DUALNUM || tref_isint(tr[FORL_IDX])) ? lj_opt_narrow_forl(J, tv) : IRT_NUM; for (i = FORL_IDX; i <= FORL_STEP; i++) { + if (!tr[i]) sload(J, ra+i); lua_assert(tref_isnumber_str(tr[i])); if (tref_isstr(tr[i])) tr[i] = emitir(IRTG(IR_STRTO, IRT_NUM), tr[i], 0); -- 2.11.4.GIT