• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/lua/src/

Lines Matching refs:top

102       setobjs2s(L, oldtop, L->top - 1);  /* error message on current top */
106 L->top = oldtop + 1;
119 setobjs2s(L, g->mainthread->top++, L->top - 1); /* copy error obj. */
124 seterrorobj(L, errcode, L->top); /* assume EXTRA_STACK */
125 if (L->ci->top < L->top)
126 L->ci->top = L->top; /* pushing msg. can break this invariant */
161 L->top = (L->top - oldstack) + L->stack;
165 ci->top = (ci->top - oldstack) + L->stack;
196 int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK;
212 StkId lim = L->top;
214 if (lim < ci->top) lim = ci->top;
242 L->top++;
257 ptrdiff_t top = savestack(L, L->top);
258 ptrdiff_t ci_top = savestack(L, ci->top);
264 ci->top = L->top + LUA_MINSTACK;
265 lua_assert(ci->top <= L->stack_last);
273 ci->top = restorestack(L, ci_top);
274 L->top = restorestack(L, top);
298 fixed = L->top - actual; /* first fixed argument */
299 base = L->top; /* final position of first argument */
301 setobjs2s(L, L->top++, fixed + i);
305 setnilvalue(L->top++); /* complete missing arguments */
321 for (p = L->top; p > func; p--)
323 L->top++; /* slot ensured by caller */
348 L->top = res + nres;
366 L->top = res + wanted; /* top points after the last result */
428 ci->top = L->top + LUA_MINSTACK;
429 lua_assert(ci->top <= L->stack_last);
437 luaD_poscall(L, ci, L->top - n, n);
443 int n = cast_int(L->top - func) - 1; /* number of real arguments */
450 setnilvalue(L->top++); /* complete missing arguments */
457 L->top = ci->top = base + fsize;
458 lua_assert(ci->top <= L->stack_last);
536 luaD_poscall(L, ci, L->top - n, n); /* finish 'luaD_precall' */
604 L->top -= narg; /* remove args from the stack */
605 setsvalue2s(L, L->top, luaS_new(L, msg)); /* push error message */
621 StkId firstArg = L->top - n; /* first argument */
639 firstArg = L->top - n; /* yield results come from continuation */
674 seterrorobj(L, status, L->top); /* push error message */
675 L->ci->top = L->top;
712 ci->func = L->top - nresults - 1; /* protect stack below results */
793 status = luaD_pcall(L, f_parser, &p, savestack(L, L->top), L->errfunc);