Skip to content

Commit

Permalink
jit.util.traceinfo(): Include mcode, mcloop, szmcode
Browse files Browse the repository at this point in the history
  • Loading branch information
lukego committed Sep 23, 2015
1 parent 863854c commit ef49da4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/luajit/src/lib_jit.c
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ LJLIB_CF(jit_util_traceinfo)
setintfield(L, t, "nk", REF_BIAS - (int32_t)T->nk);
setintfield(L, t, "link", T->link);
setintfield(L, t, "nexit", T->nsnap);
setintfield(L, t, "szmcode", T->szmcode);
setintfield(L, t, "mcode", T->mcode);
setintfield(L, t, "mcloop", T->mcloop);
setstrV(L, L->top++, lj_str_newz(L, jit_trlinkname[T->linktype]));
lua_setfield(L, -2, "linktype");
/* There are many more fields. Add them only when needed. */
Expand Down

0 comments on commit ef49da4

Please sign in to comment.