Lines Matching refs:newstack
163 static void correctstack (lua_State *L, StkId oldstack, StkId newstack) { in correctstack() argument
166 if (oldstack == newstack) in correctstack()
168 L->top = (L->top - oldstack) + newstack; in correctstack()
170 up->v = s2v((uplevel(up) - oldstack) + newstack); in correctstack()
172 ci->top = (ci->top - oldstack) + newstack; in correctstack()
173 ci->func = (ci->func - oldstack) + newstack; in correctstack()
186 StkId newstack = luaM_reallocvector(L, L->stack, in luaD_reallocstack() local
189 if (unlikely(newstack == NULL)) { /* reallocation failed? */ in luaD_reallocstack()
195 setnilvalue(s2v(newstack + lim + EXTRA_STACK)); /* erase new segment */ in luaD_reallocstack()
196 correctstack(L, L->stack, newstack); in luaD_reallocstack()
197 L->stack = newstack; in luaD_reallocstack()