Add recursive dump option to jit.bc.dump().

This commit is contained in:
Mike Pall
2011-06-12 23:51:13 +02:00
parent 0c8696dfbf
commit 9da94d1355
2 changed files with 10 additions and 1 deletions

View File

@@ -193,6 +193,8 @@ LJLIB_CF(jit_util_funcinfo)
setintfield(L, t, "currentline", lj_debug_line(pt, pc));
lua_pushboolean(L, (pt->flags & PROTO_VARARG));
lua_setfield(L, -2, "isvararg");
lua_pushboolean(L, (pt->flags & PROTO_CHILD));
lua_setfield(L, -2, "children");
setstrV(L, L->top++, proto_chunkname(pt));
lua_setfield(L, -2, "source");
lj_debug_pushloc(L, pt, pc);