Searched refs:savestack (Results 1 – 12 of 12) sorted by relevance
/freebsd/contrib/lua/src/ |
H A D | ldo.h | 36 #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 D | ldo.c | 168 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 D | ltm.c | 121 ptrdiff_t result = savestack(L, res); in luaT_callTMres()
|
H A D | lfunc.c | 228 ptrdiff_t levelrel = savestack(L, level); in luaF_close()
|
H A D | lapi.c | 1059 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 D | lgc.c | 921 status = luaD_pcall(L, dothecall, NULL, savestack(L, L->top.p - 2), 0); in GCTM()
|
/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | ldo.c | 304 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 D | ldo.h | 22 #define savestack(L,p) ((char *)(p) - (char *)L->stack) macro
|
H A D | lapi.c | 942 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 D | ldebug.c | 50 ci->extra = savestack(L, temp); in swapextra()
|
H A D | lgc.c | 822 status = luaD_pcall(L, dothecall, NULL, savestack(L, L->top - 2), 0); in GCTM()
|
H A D | lvm.c | 95 ptrdiff_t result = savestack(L, p3); in callTM()
|