summaryrefslogtreecommitdiff
path: root/src/lj_record.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_record.c')
-rw-r--r--src/lj_record.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_record.c b/src/lj_record.c
index fe79832a..1a18724a 100644
--- a/src/lj_record.c
+++ b/src/lj_record.c
@@ -1276,7 +1276,7 @@ static void rec_func_setup(jit_State *J)
1276{ 1276{
1277 GCproto *pt = J->pt; 1277 GCproto *pt = J->pt;
1278 BCReg s, numparams = pt->numparams; 1278 BCReg s, numparams = pt->numparams;
1279 if ((pt->flags & PROTO_NO_JIT)) 1279 if ((pt->flags & PROTO_NOJIT))
1280 lj_trace_err(J, LJ_TRERR_CJITOFF); 1280 lj_trace_err(J, LJ_TRERR_CJITOFF);
1281 if (J->baseslot + pt->framesize >= LJ_MAX_JSLOTS) 1281 if (J->baseslot + pt->framesize >= LJ_MAX_JSLOTS)
1282 lj_trace_err(J, LJ_TRERR_STACKOV); 1282 lj_trace_err(J, LJ_TRERR_STACKOV);
@@ -1292,7 +1292,7 @@ static void rec_func_vararg(jit_State *J)
1292{ 1292{
1293 GCproto *pt = J->pt; 1293 GCproto *pt = J->pt;
1294 BCReg s, fixargs, vframe = J->maxslot+1; 1294 BCReg s, fixargs, vframe = J->maxslot+1;
1295 lua_assert((pt->flags & PROTO_IS_VARARG)); 1295 lua_assert((pt->flags & PROTO_VARARG));
1296 if (J->baseslot + vframe + pt->framesize >= LJ_MAX_JSLOTS) 1296 if (J->baseslot + vframe + pt->framesize >= LJ_MAX_JSLOTS)
1297 lj_trace_err(J, LJ_TRERR_STACKOV); 1297 lj_trace_err(J, LJ_TRERR_STACKOV);
1298 J->base[vframe-1] = J->base[-1]; /* Copy function up. */ 1298 J->base[vframe-1] = J->base[-1]; /* Copy function up. */