Lines Matching refs:newstack
164 static void correctstack (lua_State *L, StkId oldstack, StkId newstack) { in correctstack() argument
167 if (oldstack == newstack) in correctstack()
169 L->top = (L->top - oldstack) + newstack; in correctstack()
171 up->v = s2v((uplevel(up) - oldstack) + newstack); in correctstack()
173 ci->top = (ci->top - oldstack) + newstack; in correctstack()
174 ci->func = (ci->func - oldstack) + newstack; in correctstack()
187 StkId newstack = luaM_reallocvector(L, L->stack, lim, newsize, StackValue); in luaD_reallocstack() local
190 if (unlikely(newstack == NULL)) { /* reallocation failed? */ in luaD_reallocstack()
196 setnilvalue(s2v(newstack + lim)); /* erase new segment */ in luaD_reallocstack()
197 correctstack(L, L->stack, newstack); in luaD_reallocstack()
198 L->stack = newstack; in luaD_reallocstack()