diff options
author | Mike Pall <mike> | 2010-02-15 17:36:29 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-02-15 17:36:29 +0100 |
commit | 3452bfcf8cb2dc67819485c7b011e5c6a59310f8 (patch) | |
tree | ef9296179854170d517ed02bdfc51f2003ceedf0 /src/lib_jit.c | |
parent | b838cd8dca67c8ea251faf71408a9d4c45fd0daf (diff) | |
download | luajit-3452bfcf8cb2dc67819485c7b011e5c6a59310f8.tar.gz luajit-3452bfcf8cb2dc67819485c7b011e5c6a59310f8.tar.bz2 luajit-3452bfcf8cb2dc67819485c7b011e5c6a59310f8.zip |
Add generic function handling for debug modules.
Don't call record vmevent for non-Lua functions.
Diffstat (limited to 'src/lib_jit.c')
-rw-r--r-- | src/lib_jit.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/lib_jit.c b/src/lib_jit.c index a5829dc3..0ee5ad0d 100644 --- a/src/lib_jit.c +++ b/src/lib_jit.c | |||
@@ -197,9 +197,12 @@ LJLIB_CF(jit_util_funcinfo) | |||
197 | } else { | 197 | } else { |
198 | GCfunc *fn = funcV(L->base); | 198 | GCfunc *fn = funcV(L->base); |
199 | GCtab *t; | 199 | GCtab *t; |
200 | lua_createtable(L, 0, 2); /* Increment hash size if fields are added. */ | 200 | lua_createtable(L, 0, 4); /* Increment hash size if fields are added. */ |
201 | t = tabV(L->top-1); | 201 | t = tabV(L->top-1); |
202 | setintfield(L, t, "ffid", fn->c.ffid); | 202 | if (!iscfunc(fn)) |
203 | setintfield(L, t, "ffid", fn->c.ffid); | ||
204 | setnumV(lj_tab_setstr(L, t, lj_str_newlit(L, "addr")), | ||
205 | cast_num((intptr_t)fn->c.f)); | ||
203 | setintfield(L, t, "upvalues", fn->c.nupvalues); | 206 | setintfield(L, t, "upvalues", fn->c.nupvalues); |
204 | } | 207 | } |
205 | return 1; | 208 | return 1; |