Home
last modified time | relevance | path

Searched refs:savestack (Results 1 – 12 of 12) sorted by path

/freebsd/contrib/lua/src/
H A Dlapi.c1059 func = savestack(L, o); in lua_pcallk()
1064 status = luaD_pcall(L, f_call, &c, savestack(L, c.func), func); in lua_pcallk()
1071 ci->u2.funcidx = cast_int(savestack(L, c.func)); in lua_pcallk()
H A Dldo.c168 L->top.offset = savestack(L, L->top.p); in relstack()
169 L->tbclist.offset = savestack(L, L->tbclist.p); in relstack()
171 up->v.offset = savestack(L, uplevel(up)); in relstack()
173 ci->top.offset = savestack(L, ci->top.p); in relstack()
174 ci->func.offset = savestack(L, ci->func.p); in relstack()
334 ptrdiff_t top = savestack(L, L->top.p); /* preserve original 'top' */ in luaD_hook()
335 ptrdiff_t ci_top = savestack(L, ci->top.p); /* idem for 'ci->top' */ in luaD_hook()
457 ptrdiff_t savedres = savestack(L, res); in moveresults()
1015 status = luaD_pcall(L, f_parser, &p, savestack(L, L->top.p), L->errfunc); in luaD_protectedparser()
H A Dldo.h36 #define savestack(L,pt) (cast_charp(pt) - cast_charp(L->stack.p)) macro
43 ptrdiff_t t__ = savestack(L, p), /* save 'p' */ \
50 ptrdiff_t t__ = savestack(L, p); /* save 'p' */ \
H A Dlfunc.c228 ptrdiff_t levelrel = savestack(L, level); in luaF_close()
H A Dlgc.c921 status = luaD_pcall(L, dothecall, NULL, savestack(L, L->top.p - 2), 0); in GCTM()
H A Dltm.c121 ptrdiff_t result = savestack(L, res); in luaT_callTMres()
/freebsd/sys/contrib/openzfs/module/lua/
H A Dlapi.c942 func = savestack(L, o); in lua_pcallk()
947 status = luaD_pcall(L, f_call, &c, savestack(L, c.func), func); in lua_pcallk()
954 ci->extra = savestack(L, c.func); in lua_pcallk()
H A Dldebug.c50 ci->extra = savestack(L, temp); in swapextra()
H A Dldo.c304 ptrdiff_t top = savestack(L, L->top); in luaD_hook()
305 ptrdiff_t ci_top = savestack(L, ci->top); in luaD_hook()
360 ptrdiff_t funcr = savestack(L, func); in tryfuncTM()
383 ptrdiff_t funcr = savestack(L, func); in luaD_precall()
451 ptrdiff_t fr = savestack(L, firstResult); /* hook may change stack */ in luaD_poscall()
667 ci->extra = savestack(L, ci->func); /* save current 'func' */ in lua_yieldk()
755 status = luaD_pcall(L, f_parser, &p, savestack(L, L->top), L->errfunc); in luaD_protectedparser()
H A Dldo.h22 #define savestack(L,p) ((char *)(p) - (char *)L->stack) macro
H A Dlgc.c822 status = luaD_pcall(L, dothecall, NULL, savestack(L, L->top - 2), 0); in GCTM()
H A Dlvm.c95 ptrdiff_t result = savestack(L, p3); in callTM()