Home
last modified time | relevance | path

Searched refs:StkId (Results 1 – 25 of 31) sorted by relevance

12

/freebsd-13-stable/contrib/lua/src/
HDldo.h36 #define restorestack(L,n) ((StkId)((char *)L->stack + (n)))
55 LUAI_FUNC void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop);
61 LUAI_FUNC void luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, int n);
62 LUAI_FUNC CallInfo *luaD_precall (lua_State *L, StkId func, int nResults);
63 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults);
64 LUAI_FUNC void luaD_callnoyield (lua_State *L, StkId func, int nResults);
65 LUAI_FUNC void luaD_tryfuncTM (lua_State *L, StkId func);
HDltm.c105 StkId func = L->top; in luaT_callTM()
120 const TValue *p2, StkId res) { in luaT_callTMres()
122 StkId func = L->top; in luaT_callTMres()
138 StkId res, TMS event) { in callbinTM()
149 StkId res, TMS event) { in luaT_trybinTM()
168 StkId top = L->top; in luaT_tryconcatTM()
175 int flip, StkId res, TMS event) { in luaT_trybinassocTM()
184 int flip, StkId res, TMS event) { in luaT_trybiniTM()
257 void luaT_getvarargs (lua_State *L, CallInfo *ci, StkId where, int wanted) { in luaT_getvarargs()
HDlfunc.h35 #define uplevel(up) check_exp(upisopen(up), cast(StkId, (up)->v))
60 LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
61 LUAI_FUNC void luaF_newtbcupval (lua_State *L, StkId level);
62 LUAI_FUNC int luaF_close (lua_State *L, StkId level, int status);
HDltm.h84 const TValue *p1, const TValue *p2, StkId p3);
86 StkId res, TMS event);
89 const TValue *p2, int inv, StkId res, TMS event);
91 int inv, StkId res, TMS event);
100 StkId where, int wanted);
HDldo.c91 void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop) { in luaD_seterrorobj()
163 static void correctstack (lua_State *L, StkId oldstack, StkId newstack) { in correctstack()
186 StkId newstack = luaM_reallocvector(L, L->stack, in luaD_reallocstack()
241 StkId lim = L->top; in stackinuse()
346 static StkId rethook (lua_State *L, CallInfo *ci, StkId firstres, int nres) { in rethook()
374 void luaD_tryfuncTM (lua_State *L, StkId func) { in luaD_tryfuncTM()
376 StkId p; in luaD_tryfuncTM()
392 static void moveresults (lua_State *L, StkId res, int nres, int wanted) { in moveresults()
393 StkId firstresult; in moveresults()
452 void luaD_pretailcall (lua_State *L, CallInfo *ci, StkId func, int narg1) { in luaD_pretailcall()
[all …]
HDlfunc.c65 static UpVal *newupval (lua_State *L, int tbc, StkId level, UpVal **prev) { in newupval()
88 UpVal *luaF_findupval (lua_State *L, StkId level) { in luaF_findupval()
114 StkId top = L->top; in prepclosingmethod()
130 static void varerror (lua_State *L, StkId level, const char *msg) { in varerror()
150 static int callclosemth (lua_State *L, StkId level, int status) { in callclosemth()
185 newupval(L, 1, cast(StkId, ud), &L->openupval); in trynewtbcupval()
194 void luaF_newtbcupval (lua_State *L, StkId level) { in luaF_newtbcupval()
223 int luaF_close (lua_State *L, StkId level, int status) { in luaF_close()
HDlstate.h161 StkId func; /* function index in the stack */
162 StkId top; /* top for this function */
278 StkId top; /* first free slot in the stack */
281 StkId stack_last; /* end of stack (last element + 1) */
282 StkId stack; /* stack base */
HDldebug.c188 static const char *findvararg (CallInfo *ci, int n, StkId *pos) { in findvararg()
200 const char *luaG_findlocal (lua_State *L, CallInfo *ci, int n, StkId *pos) { in luaG_findlocal()
201 StkId base = ci->func + 1; in luaG_findlocal()
210 StkId limit = (ci == L->ci) ? L->top : ci->next->func; in luaG_findlocal()
234 StkId pos = NULL; /* to avoid warnings */ in lua_getlocal()
247 StkId pos = NULL; /* to avoid warnings */ in lua_setlocal()
655 StkId base = ci->func + 1; in isinstack()
656 ptrdiff_t i = cast(StkId, o) - base; in isinstack()
688 cast_int(cast(StkId, o) - (ci->func + 1)), &name); in varinfo()
756 StkId errfunc = restorestack(L, L->errfunc); in luaG_errormsg()
HDlvm.c213 static int forprep (lua_State *L, StkId ra) { in forprep()
273 static int floatforloop (StkId ra) { in floatforloop()
294 void luaV_finishget (lua_State *L, const TValue *t, TValue *key, StkId val, in luaV_finishget()
629 static void copy2buff (StkId top, int n, char *buff) { in copy2buff()
647 StkId top = L->top; in luaV_concat()
688 void luaV_objlen (lua_State *L, StkId ra, const TValue *rb) { in luaV_objlen()
792 static void pushclosure (lua_State *L, Proto *p, UpVal **encup, StkId base, in pushclosure()
793 StkId ra) { in pushclosure()
815 StkId base = ci->func + 1; in luaV_finishOp()
847 StkId top = L->top - 1; /* top when 'luaT_tryconcatTM' was called */ in luaV_finishOp()
[all …]
HDlvm.h122 StkId val, const TValue *slot);
132 LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb);
HDlapi.c59 StkId o = ci->func + idx; in index2value()
83 static StkId index2stack (lua_State *L, int idx) { in index2stack()
86 StkId o = ci->func + idx; in index2stack()
175 StkId func; in lua_settop()
203 static void reverse (lua_State *L, StkId from, StkId to) { in reverse()
218 StkId p, t, m; in lua_rotate()
973 StkId func; in lua_callk()
998 StkId func;
1024 StkId o = index2stack(L, errfunc); in lua_pcallk()
1239 StkId o; in lua_toclose()
HDldebug.h31 StkId *pos);
HDltable.h51 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
/freebsd-13-stable/sys/contrib/openzfs/module/lua/
HDlapi.c163 StkId func = L->ci->func; in lua_settop()
180 StkId p; in lua_remove()
191 StkId p; in lua_insert()
192 StkId q; in lua_insert()
247 StkId o = index2addr(L, idx); in lua_type()
261 StkId o = index2addr(L, idx); in lua_iscfunction()
286 StkId o1 = index2addr(L, index1); in lua_rawequal()
287 StkId o2 = index2addr(L, index2); in lua_rawequal()
293 StkId o1; /* 1st operand */ in lua_arith()
294 StkId o2; /* 2nd operand */ in lua_arith()
[all …]
HDlvm.h33 LUAI_FUNC int luaV_tostring (lua_State *L, StkId obj);
35 StkId val);
37 StkId val);
41 LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb,
43 LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb);
HDlstate.h71 StkId func; /* function index in the stack */
72 StkId top; /* top for this function */
79 StkId base; /* base for this function */
158 StkId top; /* first free slot in the stack */
162 StkId stack_last; /* last free slot in the stack */
163 StkId stack; /* stack base */
HDldebug.c49 StkId temp = ci->func; /* exchange its 'func' and 'extra' values */ in swapextra()
113 static const char *findvararg (CallInfo *ci, int n, StkId *pos) { in findvararg()
126 StkId *pos) { in findlocal()
128 StkId base; in findlocal()
140 StkId limit = (ci == L->ci) ? L->top : ci->next->func; in findlocal()
162 StkId pos = 0; /* to avoid warnings */ in lua_getlocal()
176 StkId pos = 0; /* to avoid warnings */ in lua_setlocal()
282 StkId func; in lua_getinfo()
506 StkId p; in isinstack()
546 l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2) { in luaG_concaterror()
[all …]
HDldo.c153 static void seterrorobj (lua_State *L, int errcode, StkId oldtop) { in seterrorobj()
278 StkId lim = L->top; in stackinuse()
339 static StkId adjust_varargs (lua_State *L, Proto *p, int actual) { in adjust_varargs()
342 StkId base, fixed; in adjust_varargs()
356 static StkId tryfuncTM (lua_State *L, StkId func) { in tryfuncTM()
358 StkId p; in tryfuncTM()
378 int luaD_precall (lua_State *L, StkId func, int nresults) { in luaD_precall()
408 StkId base; in luaD_precall()
444 int luaD_poscall (lua_State *L, StkId firstResult) { in luaD_poscall()
445 StkId res; in luaD_poscall()
[all …]
HDldo.h33 LUAI_FUNC int luaD_precall (lua_State *L, StkId func, int nresults);
34 LUAI_FUNC void luaD_call (lua_State *L, StkId func, int nResults,
38 LUAI_FUNC int luaD_poscall (lua_State *L, StkId firstResult);
HDlvm.c46 int luaV_tostring (lua_State *L, StkId obj) { in luaV_tostring()
111 void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val) { in luaV_gettable()
137 void luaV_settable (lua_State *L, const TValue *t, TValue *key, StkId val) { in luaV_settable()
177 StkId res, TMS event) { in call_binTM()
297 StkId top = L->top; in luaV_concat()
336 void luaV_objlen (lua_State *L, StkId ra, const TValue *rb) { in luaV_objlen()
410 void luaV_arith (lua_State *L, StkId ra, const TValue *rb, in luaV_arith()
440 static Closure *getcached (Proto *p, UpVal **encup, StkId base) { in getcached()
462 static void pushclosure (lua_State *L, Proto *p, UpVal **encup, StkId base, in pushclosure()
463 StkId ra) { in pushclosure()
[all …]
HDlfunc.h26 LUAI_FUNC UpVal *luaF_findupval (lua_State *L, StkId level);
27 LUAI_FUNC void luaF_close (lua_State *L, StkId level);
HDldebug.h27 LUAI_FUNC l_noret luaG_concaterror (lua_State *L, StkId p1, StkId p2);
HDlfunc.c46 UpVal *luaF_findupval (lua_State *L, StkId level) { in luaF_findupval()
88 void luaF_close (lua_State *L, StkId level) { in luaF_close()
HDltable.h36 LUAI_FUNC int luaH_next (lua_State *L, Table *t, StkId key);
HDltable.c144 static int findindex (lua_State *L, Table *t, StkId key) { in findindex()
169 int luaH_next (lua_State *L, Table *t, StkId key) { in luaH_next()

12