Lines Matching refs:top

99       setobjs2s(L, oldtop, L->top - 1);  /* error message on current top */  in seterrorobj()
103 L->top = oldtop + 1; in seterrorobj()
115 setobjs2s(L, G(L)->mainthread->top++, L->top - 1); /* copy error obj. */ in luaD_throw()
149 L->top = (L->top - oldstack) + L->stack; in correctstack()
153 ci->top = (ci->top - oldstack) + L->stack; in correctstack()
184 int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK; in luaD_growstack()
200 StkId lim = L->top; in stackinuse()
202 lua_assert(ci->top <= L->stack_last); in stackinuse()
203 if (lim < ci->top) lim = ci->top; in stackinuse()
225 ptrdiff_t top = savestack(L, L->top); in luaD_hook() local
226 ptrdiff_t ci_top = savestack(L, ci->top); in luaD_hook()
232 ci->top = L->top + LUA_MINSTACK; in luaD_hook()
233 lua_assert(ci->top <= L->stack_last); in luaD_hook()
241 ci->top = restorestack(L, ci_top); in luaD_hook()
242 L->top = restorestack(L, top); in luaD_hook()
268 fixed = L->top - actual; /* first fixed argument */ in adjust_varargs()
269 base = L->top; /* final position of first argument */ in adjust_varargs()
271 setobjs2s(L, L->top++, fixed + i); in adjust_varargs()
285 for (p = L->top; p > func; p--) setobjs2s(L, p, p-1); in tryfuncTM()
316 ci->top = L->top + LUA_MINSTACK; in luaD_precall()
317 lua_assert(ci->top <= L->stack_last); in luaD_precall()
326 luaD_poscall(L, L->top - n); in luaD_precall()
332 n = cast_int(L->top - func) - 1; /* number of real arguments */ in luaD_precall()
335 setnilvalue(L->top++); /* complete missing arguments */ in luaD_precall()
348 ci->top = base + p->maxstacksize; in luaD_precall()
349 lua_assert(ci->top <= L->stack_last); in luaD_precall()
352 L->top = ci->top; in luaD_precall()
382 for (i = wanted; i != 0 && firstResult < L->top; i--) in luaD_poscall()
386 L->top = res; in luaD_poscall()
433 luaD_poscall(L, L->top - n); in finishCcall()
490 L->top = firstArg; /* remove args from the stack */ in resume_error()
491 setsvalue2s(L, L->top, luaS_new(L, msg)); /* push error message */ in resume_error()
529 firstArg = L->top - n; /* yield results come from continuation */ in resume_cb()
547 status = luaD_rawrunprotected(L, resume_cb, L->top - nargs); in lua_resume()
556 seterrorobj(L, status, L->top); in lua_resume()
557 L->ci->top = L->top; in lua_resume()
590 ci->func = L->top - nresults - 1; /* protect stack below results */ in lua_yieldk()
676 status = luaD_pcall(L, f_parser, &p, savestack(L, L->top), L->errfunc); in luaD_protectedparser()