Suppress recording of retried fast functions.

This commit is contained in:
Mike Pall
2011-03-07 20:03:38 +01:00
parent f29a9d4341
commit 8eb09fe820
3 changed files with 9 additions and 2 deletions

View File

@@ -799,8 +799,10 @@ void lj_ffrecord_func(jit_State *J)
rd.argv = J->L->base;
J->base[J->maxslot] = 0; /* Mark end of arguments. */
(recff_func[m >> 8])(J, &rd); /* Call recff_* handler. */
if (rd.nres >= 0)
if (rd.nres >= 0) {
if (J->postproc == LJ_POST_NONE) J->postproc = LJ_POST_FFRETRY;
lj_record_ret(J, 0, rd.nres);
}
}
#undef IR