Minor cleanup of trace event handling.

This commit is contained in:
Mike Pall
2010-02-15 16:41:52 +01:00
parent 1288e04186
commit b838cd8dca
5 changed files with 33 additions and 37 deletions

View File

@@ -359,10 +359,7 @@ void LJ_FASTCALL lj_dispatch_ins(lua_State *L, const BCIns *pc)
jit_State *J = G2J(g);
if (J->state != LJ_TRACE_IDLE) {
J->L = L;
J->pc = pc-1;
J->fn = fn;
J->pt = pt;
lj_trace_ins(J);
lj_trace_ins(J, pc-1); /* The interpreter bytecode PC is offset by 1. */
}
}
#endif