diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-02-05 11:00:28 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2021-02-05 11:00:28 -0300 |
commit | 2bfa13e520e53210b96ead88f49a9ca20c5a5d18 (patch) | |
tree | ef9c505f3ef9f6008d0bf993f2ed03fa04faac0e /lvm.c | |
parent | e500892e18e994781760819e33098322728796e8 (diff) | |
download | lua-2bfa13e520e53210b96ead88f49a9ca20c5a5d18.tar.gz lua-2bfa13e520e53210b96ead88f49a9ca20c5a5d18.tar.bz2 lua-2bfa13e520e53210b96ead88f49a9ca20c5a5d18.zip |
Fixed some bugs around stack reallocation
Long time without using HARDSTACKTESTS...
Diffstat (limited to 'lvm.c')
-rw-r--r-- | lvm.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1150,6 +1150,8 @@ void luaV_execute (lua_State *L, CallInfo *ci) { | |||
1150 | Instruction i; /* instruction being executed */ | 1150 | Instruction i; /* instruction being executed */ |
1151 | StkId ra; /* instruction's A register */ | 1151 | StkId ra; /* instruction's A register */ |
1152 | vmfetch(); | 1152 | vmfetch(); |
1153 | // low-level line tracing for debugging Lua | ||
1154 | // printf("line: %d\n", luaG_getfuncline(cl->p, pcRel(pc, cl->p))); | ||
1153 | lua_assert(base == ci->func + 1); | 1155 | lua_assert(base == ci->func + 1); |
1154 | lua_assert(base <= L->top && L->top < L->stack_last); | 1156 | lua_assert(base <= L->top && L->top < L->stack_last); |
1155 | /* invalidate top for instructions not expecting it */ | 1157 | /* invalidate top for instructions not expecting it */ |