diff options
author | Mike Pall <mike> | 2010-02-05 01:16:22 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2010-02-05 01:16:22 +0100 |
commit | 8dcc4364cf2c56c9bdd8047fd0dceb4b70f727d2 (patch) | |
tree | 87377af1470716bf4b7bcd8feba1fc84fd34d5f9 /src/lib_jit.c | |
parent | d7789821208336a7fe6e0b6d706b6b4844e6fa9e (diff) | |
download | luajit-8dcc4364cf2c56c9bdd8047fd0dceb4b70f727d2.tar.gz luajit-8dcc4364cf2c56c9bdd8047fd0dceb4b70f727d2.tar.bz2 luajit-8dcc4364cf2c56c9bdd8047fd0dceb4b70f727d2.zip |
32/64 bit memory ref cleanup, part 3: GCproto ->lineinfo.
Diffstat (limited to 'src/lib_jit.c')
-rw-r--r-- | src/lib_jit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib_jit.c b/src/lib_jit.c index 52368a8b..d0b9e833 100644 --- a/src/lib_jit.c +++ b/src/lib_jit.c | |||
@@ -184,8 +184,9 @@ LJLIB_CF(jit_util_funcinfo) | |||
184 | setintfield(L, t, "gcconsts", (int32_t)pt->sizekgc); | 184 | setintfield(L, t, "gcconsts", (int32_t)pt->sizekgc); |
185 | setintfield(L, t, "nconsts", (int32_t)pt->sizekn); | 185 | setintfield(L, t, "nconsts", (int32_t)pt->sizekn); |
186 | setintfield(L, t, "upvalues", (int32_t)pt->sizeuv); | 186 | setintfield(L, t, "upvalues", (int32_t)pt->sizeuv); |
187 | if (pc > 0) | 187 | if (pc-1 < pt->sizebc) |
188 | setintfield(L, t, "currentline", pt->lineinfo ? pt->lineinfo[pc-1] : 0); | 188 | setintfield(L, t, "currentline", |
189 | proto_lineinfo(pt) ? proto_line(pt, pc-1) : 0); | ||
189 | lua_pushboolean(L, (pt->flags & PROTO_IS_VARARG)); | 190 | lua_pushboolean(L, (pt->flags & PROTO_IS_VARARG)); |
190 | lua_setfield(L, -2, "isvararg"); | 191 | lua_setfield(L, -2, "isvararg"); |
191 | setstrV(L, L->top++, proto_chunkname(pt)); | 192 | setstrV(L, L->top++, proto_chunkname(pt)); |