aboutsummaryrefslogtreecommitdiff
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 758835aa..818b8787 100644
--- a/src/lib_jit.c
+++ b/src/lib_jit.c
@@ -181,8 +181,8 @@ LJLIB_CF(jit_util_funcinfo)
181 GCtab *t; 181 GCtab *t;
182 lua_createtable(L, 0, 16); /* Increment hash size if fields are added. */ 182 lua_createtable(L, 0, 16); /* Increment hash size if fields are added. */
183 t = tabV(L->top-1); 183 t = tabV(L->top-1);
184 setintfield(L, t, "linedefined", proto_line(pt, 0)); 184 setintfield(L, t, "linedefined", pt->firstline);
185 setintfield(L, t, "lastlinedefined", pt->lastlinedefined); 185 setintfield(L, t, "lastlinedefined", pt->firstline + pt->numline);
186 setintfield(L, t, "stackslots", pt->framesize); 186 setintfield(L, t, "stackslots", pt->framesize);
187 setintfield(L, t, "params", pt->numparams); 187 setintfield(L, t, "params", pt->numparams);
188 setintfield(L, t, "bytecodes", (int32_t)pt->sizebc); 188 setintfield(L, t, "bytecodes", (int32_t)pt->sizebc);
@@ -254,7 +254,7 @@ LJLIB_CF(jit_util_funcuvname)
254 GCproto *pt = check_Lproto(L, 0); 254 GCproto *pt = check_Lproto(L, 0);
255 uint32_t idx = (uint32_t)lj_lib_checkint(L, 2); 255 uint32_t idx = (uint32_t)lj_lib_checkint(L, 2);
256 if (idx < pt->sizeuv) { 256 if (idx < pt->sizeuv) {
257 setstrV(L, L->top-1, proto_uvname(pt, idx)); 257 setstrV(L, L->top-1, lj_str_newz(L, lj_debug_uvname(pt, idx)));
258 return 1; 258 return 1;
259 } 259 }
260 return 0; 260 return 0;