summaryrefslogtreecommitdiff
path: root/src/lib_jit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib_jit.c')
-rw-r--r--src/lib_jit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib_jit.c b/src/lib_jit.c
index 6e16d45b..758835aa 100644
--- a/src/lib_jit.c
+++ b/src/lib_jit.c
@@ -13,6 +13,7 @@
13#include "lj_arch.h" 13#include "lj_arch.h"
14#include "lj_obj.h" 14#include "lj_obj.h"
15#include "lj_err.h" 15#include "lj_err.h"
16#include "lj_debug.h"
16#include "lj_str.h" 17#include "lj_str.h"
17#include "lj_tab.h" 18#include "lj_tab.h"
18#include "lj_bc.h" 19#include "lj_bc.h"
@@ -189,13 +190,12 @@ LJLIB_CF(jit_util_funcinfo)
189 setintfield(L, t, "nconsts", (int32_t)pt->sizekn); 190 setintfield(L, t, "nconsts", (int32_t)pt->sizekn);
190 setintfield(L, t, "upvalues", (int32_t)pt->sizeuv); 191 setintfield(L, t, "upvalues", (int32_t)pt->sizeuv);
191 if (pc < pt->sizebc) 192 if (pc < pt->sizebc)
192 setintfield(L, t, "currentline", 193 setintfield(L, t, "currentline", lj_debug_line(pt, pc));
193 proto_lineinfo(pt) ? proto_line(pt, pc) : 0);
194 lua_pushboolean(L, (pt->flags & PROTO_IS_VARARG)); 194 lua_pushboolean(L, (pt->flags & PROTO_IS_VARARG));
195 lua_setfield(L, -2, "isvararg"); 195 lua_setfield(L, -2, "isvararg");
196 setstrV(L, L->top++, proto_chunkname(pt)); 196 setstrV(L, L->top++, proto_chunkname(pt));
197 lua_setfield(L, -2, "source"); 197 lua_setfield(L, -2, "source");
198 lj_err_pushloc(L, pt, pc); 198 lj_debug_pushloc(L, pt, pc);
199 lua_setfield(L, -2, "loc"); 199 lua_setfield(L, -2, "loc");
200 } else { 200 } else {
201 GCfunc *fn = funcV(L->base); 201 GCfunc *fn = funcV(L->base);