diff options
Diffstat (limited to 'src/lj_record.c')
-rw-r--r-- | src/lj_record.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_record.c b/src/lj_record.c index ad45bebb..6543f274 100644 --- a/src/lj_record.c +++ b/src/lj_record.c | |||
@@ -973,7 +973,8 @@ void lj_record_ret(jit_State *J, BCReg rbase, ptrdiff_t gotresults) | |||
973 | lj_trace_err(J, LJ_TRERR_LLEAVE); | 973 | lj_trace_err(J, LJ_TRERR_LLEAVE); |
974 | } else if (J->needsnap) { /* Tailcalled to ff with side-effects. */ | 974 | } else if (J->needsnap) { /* Tailcalled to ff with side-effects. */ |
975 | lj_trace_err(J, LJ_TRERR_NYIRETL); /* No way to insert snapshot here. */ | 975 | lj_trace_err(J, LJ_TRERR_NYIRETL); /* No way to insert snapshot here. */ |
976 | } else if (1 + pt->framesize >= LJ_MAX_JSLOTS) { | 976 | } else if (1 + pt->framesize >= LJ_MAX_JSLOTS || |
977 | J->baseslot + J->maxslot >= LJ_MAX_JSLOTS) { | ||
977 | lj_trace_err(J, LJ_TRERR_STACKOV); | 978 | lj_trace_err(J, LJ_TRERR_STACKOV); |
978 | } else { /* Return to lower frame. Guard for the target we return to. */ | 979 | } else { /* Return to lower frame. Guard for the target we return to. */ |
979 | TRef trpt = lj_ir_kgc(J, obj2gco(pt), IRT_PROTO); | 980 | TRef trpt = lj_ir_kgc(J, obj2gco(pt), IRT_PROTO); |