diff options
author | Mike Pall <mike> | 2011-06-09 01:27:37 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2011-06-09 01:27:37 +0200 |
commit | 8c32b38ca3d522d6c90249495231a331aafca7e2 (patch) | |
tree | 0dad822398bef90be8caec0945d6c32a790d7ec9 /src/lj_api.c | |
parent | 585cf05dbd54564d2d3387cef09b3ac2d5e52afd (diff) | |
download | luajit2-8c32b38ca3d522d6c90249495231a331aafca7e2.tar.gz |
Flatten and compress in-memory debug info (saves ~70%).
Diffstat (limited to 'src/lj_api.c')
-rw-r--r-- | src/lj_api.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lj_api.c b/src/lj_api.c index 4e41ccc0..6a68cd84 100644 --- a/src/lj_api.c +++ b/src/lj_api.c @@ -836,7 +836,7 @@ LUA_API int lua_next(lua_State *L, int idx) LUA_API const char *lua_getupvalue(lua_State *L, int idx, int n) { TValue *val; - const char *name = lj_debug_uvname(index2adr(L, idx), (uint32_t)(n-1), &val); + const char *name = lj_debug_uvnamev(index2adr(L, idx), (uint32_t)(n-1), &val); if (name) { copyTV(L, L->top, val); incr_top(L); @@ -991,7 +991,7 @@ LUA_API const char *lua_setupvalue(lua_State *L, int idx, int n) TValue *val; const char *name; api_checknelems(L, 1); - name = lj_debug_uvname(f, (uint32_t)(n-1), &val); + name = lj_debug_uvnamev(f, (uint32_t)(n-1), &val); if (name) { L->top--; copyTV(L, val, L->top); |