Searched refs:newstack (Results 1 – 4 of 4) sorted by relevance
163 static void correctstack (lua_State *L, StkId oldstack, StkId newstack) { in correctstack() argument166 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() local189 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()[all …]
475 int newstack = fs->freereg + n; in luaK_checkstack() local476 if (newstack > fs->f->maxstacksize) { in luaK_checkstack()477 if (newstack >= MAXREGS) in luaK_checkstack()480 fs->f->maxstacksize = cast_byte(newstack); in luaK_checkstack()
581 uptr *newstack = (uptr*)internal_alloc(MBlockShadowStack, in GrowShadowStack() local583 internal_memcpy(newstack, thr->shadow_stack, sz * sizeof(uptr)); in GrowShadowStack()585 thr->shadow_stack = newstack; in GrowShadowStack()586 thr->shadow_stack_pos = newstack + sz; in GrowShadowStack()587 thr->shadow_stack_end = newstack + newsz; in GrowShadowStack()
264 int newstack = fs->freereg + n; in luaK_checkstack() local265 if (newstack > fs->f->maxstacksize) { in luaK_checkstack()266 if (newstack >= MAXSTACK) in luaK_checkstack()268 fs->f->maxstacksize = cast_byte(newstack); in luaK_checkstack()