Lines Matching refs:top
63 setobjs2s(L, oldtop, L->top - 1); /* error message on current top */ in luaD_seterrorobj()
67 L->top = oldtop + 1; in luaD_seterrorobj()
129 L->top = (L->top - oldstack) + L->stack; in correctstack()
133 ci->top = (ci->top - oldstack) + L->stack; in correctstack()
184 ptrdiff_t top = savestack(L, L->top); in luaD_callhook() local
185 ptrdiff_t ci_top = savestack(L, L->ci->top); in luaD_callhook()
194 L->ci->top = L->top + LUA_MINSTACK; in luaD_callhook()
195 lua_assert(L->ci->top <= L->stack_last); in luaD_callhook()
202 L->ci->top = restorestack(L, ci_top); in luaD_callhook()
203 L->top = restorestack(L, top); in luaD_callhook()
214 setnilvalue(L->top++); in adjust_varargs()
223 setobj2n(L, luaH_setnum(L, htab, i+1), L->top - nvar + i); in adjust_varargs()
229 fixed = L->top - actual; /* first fixed argument */ in adjust_varargs()
230 base = L->top; /* final position of first argument */ in adjust_varargs()
232 setobjs2s(L, L->top++, fixed+i); in adjust_varargs()
237 sethvalue(L, L->top++, htab); in adjust_varargs()
251 for (p = L->top; p > func; p--) setobjs2s(L, p, p-1); in tryfuncTM()
281 if (L->top > base + p->numparams) in luaD_precall()
282 L->top = base + p->numparams; in luaD_precall()
285 int nargs = cast_int(L->top - func) - 1; in luaD_precall()
292 ci->top = L->base + p->maxstacksize; in luaD_precall()
293 lua_assert(ci->top <= L->stack_last); in luaD_precall()
297 for (st = L->top; st < ci->top; st++) in luaD_precall()
299 L->top = ci->top; in luaD_precall()
314 ci->top = L->top + LUA_MINSTACK; in luaD_precall()
315 lua_assert(ci->top <= L->stack_last); in luaD_precall()
325 luaD_poscall(L, L->top - n); in luaD_precall()
355 for (i = wanted; i != 0 && firstResult < L->top; i--) in luaD_poscall()
359 L->top = res; in luaD_poscall()
400 L->top = L->ci->top; /* and correct top if not multiple results */ in resume()
410 L->top = L->ci->base; in resume_error()
411 setsvalue2s(L, L->top, luaS_new(L, msg)); in resume_error()
428 status = luaD_rawrunprotected(L, resume, L->top - nargs); in lua_resume()
431 luaD_seterrorobj(L, status, L->top); in lua_resume()
432 L->ci->top = L->top; in lua_resume()
449 L->base = L->top - nresults; /* protect stack slots below */ in lua_yield()
504 setclvalue(L, L->top, cl); in f_parser()
514 status = luaD_pcall(L, f_parser, &p, savestack(L, L->top), L->errfunc); in luaD_protectedparser()