Ver Fonte

Show trailing NYI item for stitched trace with -jv.

Mike Pall há 12 anos atrás
pai
commit
c41e65499c
2 ficheiros alterados com 4 adições e 0 exclusões
  1. 3 0
      src/jit/v.lua
  2. 1 0
      src/lj_trace.c

+ 3 - 0
src/jit/v.lua

@@ -116,6 +116,9 @@ local function dump_trace(what, tr, func, pc, otr, oex)
       if ltype == "interpreter" then
       if ltype == "interpreter" then
 	out:write(format("[TRACE %3s %s%s -- fallback to interpreter]\n",
 	out:write(format("[TRACE %3s %s%s -- fallback to interpreter]\n",
 	  tr, startex, startloc))
 	  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
       elseif link == tr or link == 0 then
 	out:write(format("[TRACE %3s %s%s %s]\n",
 	out:write(format("[TRACE %3s %s%s %s]\n",
 	  tr, startex, startloc, ltype))
 	  tr, startex, startloc, ltype))

+ 1 - 0
src/lj_trace.c

@@ -473,6 +473,7 @@ static void trace_stop(jit_State *J)
   lj_vmevent_send(L, TRACE,
   lj_vmevent_send(L, TRACE,
     setstrV(L, L->top++, lj_str_newlit(L, "stop"));
     setstrV(L, L->top++, lj_str_newlit(L, "stop"));
     setintV(L->top++, traceno);
     setintV(L->top++, traceno);
+    setfuncV(L, L->top++, J->fn);
   );
   );
 }
 }