Skip to content

Commit

Permalink
Merge pull request snabbco#3 from eugeneia/vita
Browse files Browse the repository at this point in the history
LuaJIT: record calls to blacklisted functions uniformly
  • Loading branch information
eugeneia authored Jan 3, 2018
2 parents dd7bd88 + e3f951b commit 0d0840e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/luajit/src/lj_record.c
Original file line number Diff line number Diff line change
Expand Up @@ -2411,8 +2411,6 @@ void lj_record_ins(jit_State *J)
case BC_IFORL:
case BC_IITERL:
case BC_ILOOP:
case BC_IFUNCF:
case BC_IFUNCV:
lj_trace_err(J, LJ_TRERR_BLACKL);
break;

Expand All @@ -2424,13 +2422,15 @@ void lj_record_ins(jit_State *J)
/* -- Function headers -------------------------------------------------- */

case BC_FUNCF:
case BC_IFUNCF:
rec_func_lua(J);
break;
case BC_JFUNCF:
rec_func_jit(J, rc);
break;

case BC_FUNCV:
case BC_IFUNCV:
rec_func_vararg(J);
rec_func_lua(J);
break;
Expand Down

0 comments on commit 0d0840e

Please sign in to comment.