diff options
author | Mike Pall <mike> | 2011-06-09 13:54:40 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-06-09 13:54:40 +0200 |
commit | b6a7fc5330040564d507eb836ea524acf1c8a759 (patch) | |
tree | 656de84811ed3ccba248f55f8eae2a83b39fa435 /src/lj_record.c | |
parent | 96cc99bd6a3f3316202f3d943d82500d8293577a (diff) | |
download | luajit2-b6a7fc5330040564d507eb836ea524acf1c8a759.tar.gz |
Cleanup prototype flags.
Diffstat (limited to 'src/lj_record.c')
-rw-r--r-- | src/lj_record.c | 4 |
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) { GCproto *pt = J->pt; BCReg s, numparams = pt->numparams; - if ((pt->flags & PROTO_NO_JIT)) + if ((pt->flags & PROTO_NOJIT)) lj_trace_err(J, LJ_TRERR_CJITOFF); if (J->baseslot + pt->framesize >= LJ_MAX_JSLOTS) lj_trace_err(J, LJ_TRERR_STACKOV); @@ -1292,7 +1292,7 @@ static void rec_func_vararg(jit_State *J) { GCproto *pt = J->pt; BCReg s, fixargs, vframe = J->maxslot+1; - lua_assert((pt->flags & PROTO_IS_VARARG)); + lua_assert((pt->flags & PROTO_VARARG)); if (J->baseslot + vframe + pt->framesize >= LJ_MAX_JSLOTS) lj_trace_err(J, LJ_TRERR_STACKOV); J->base[vframe-1] = J->base[-1]; /* Copy function up. */ |