diff --git a/src/jit/v.lua b/src/jit/v.lua index 22bee3ff..6dd7f179 100644 --- a/src/jit/v.lua +++ b/src/jit/v.lua @@ -116,6 +116,9 @@ local function dump_trace(what, tr, func, pc, otr, oex) if ltype == "interpreter" then out:write(format("[TRACE %3s %s%s -- fallback to interpreter]\n", tr, startex, startloc)) + elseif ltype == "stitch" then + out:write(format("[TRACE %3s %s%s %s %s]\n", + tr, startex, startloc, ltype, fmtfunc(func, pc))) elseif link == tr or link == 0 then out:write(format("[TRACE %3s %s%s %s]\n", tr, startex, startloc, ltype)) diff --git a/src/lj_trace.c b/src/lj_trace.c index fa15e23d..7cc9844e 100644 --- a/src/lj_trace.c +++ b/src/lj_trace.c @@ -473,6 +473,7 @@ static void trace_stop(jit_State *J) lj_vmevent_send(L, TRACE, setstrV(L, L->top++, lj_str_newlit(L, "stop")); setintV(L->top++, traceno); + setfuncV(L, L->top++, J->fn); ); }