/illumos-gate/usr/src/uts/common/fs/zfs/lua/ |
H A D | lvm.h | 26 LUAI_FUNC int luaV_equalobj_ (lua_State *L, const TValue *t1, const TValue *t2); 29 LUAI_FUNC int luaV_lessthan (lua_State *L, const TValue *l, const TValue *r); 30 LUAI_FUNC int luaV_lessequal (lua_State *L, const TValue *l, const TValue *r); 31 LUAI_FUNC const TValue *luaV_tonumber (const TValue *obj, TValue *n); 33 LUAI_FUNC void luaV_gettable (lua_State *L, const TValue *t, TValue *key, 35 LUAI_FUNC void luaV_settable (lua_State *L, const TValue *t, TValue *key, 40 LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb, 41 const TValue *rc, TMS op); 42 LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb);
|
H A D | ltable.h | 25 LUAI_FUNC const TValue *luaH_getint (Table *t, int key); 26 LUAI_FUNC void luaH_setint (lua_State *L, Table *t, int key, TValue *value); 27 LUAI_FUNC const TValue *luaH_getstr (Table *t, TString *key); 28 LUAI_FUNC const TValue *luaH_get (Table *t, const TValue *key); 29 LUAI_FUNC TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key); 30 LUAI_FUNC TValue *luaH_set (lua_State *L, Table *t, const TValue *key); 40 LUAI_FUNC Node *luaH_mainposition (const Table *t, const TValue *key);
|
H A D | lvm.c | 35 const TValue *luaV_tonumber (const TValue *obj, TValue *n) { in luaV_tonumber() 93 static void callTM (lua_State *L, const TValue *f, const TValue *p1, in callTM() 94 const TValue *p2, TValue *p3, int hasres) { in callTM() 110 void luaV_gettable (lua_State *L, const TValue *t, TValue *key, StkId val) { in luaV_gettable() 113 const TValue *tm; in luaV_gettable() 116 const TValue *res = luaH_get(h, key); /* do a primitive get */ in luaV_gettable() 136 void luaV_settable (lua_State *L, const TValue *t, TValue *key, StkId val) { in luaV_settable() 139 const TValue *tm; in luaV_settable() 142 TValue *oldval = cast(TValue *, luaH_get(h, key)); in luaV_settable() 175 static int call_binTM (lua_State *L, const TValue *p1, const TValue *p2, in call_binTM() [all …]
|
H A D | lobject.h | 105 typedef struct lua_TValue TValue; typedef 187 { TValue *io=(obj); num_(io)=(x); settt_(io, LUA_TNUMBER); } 192 { TValue *io=(obj); val_(io).f=(x); settt_(io, LUA_TLCF); } 195 { TValue *io=(obj); val_(io).p=(x); settt_(io, LUA_TLIGHTUSERDATA); } 198 { TValue *io=(obj); val_(io).b=(x); settt_(io, LUA_TBOOLEAN); } 201 { TValue *io=(obj); GCObject *i_g=(x); \ 205 { TValue *io=(obj); \ 211 { TValue *io=(obj); \ 216 { TValue *io=(obj); \ 221 { TValue *io=(obj); \ [all …]
|
H A D | ltable.c | 97 static Node *mainposition (const Table *t, const TValue *key) { in mainposition() 127 static int arrayindex (const TValue *key) { in arrayindex() 218 static int countint (const TValue *key, int *nums) { in countint() 272 luaM_reallocvector(L, t->array, t->sizearray, size, TValue); in setarrayvector() 321 luaM_reallocvector(L, t->array, oldasize, nasize, TValue); in luaH_resize() 343 static void rehash (lua_State *L, Table *t, const TValue *ek) { in rehash() 405 TValue *luaH_newkey (lua_State *L, Table *t, const TValue *key) { in luaH_newkey() 446 const TValue *luaH_getint (Table *t, int key) { in luaH_getint() 466 const TValue *luaH_getstr (Table *t, TString *key) { in luaH_getstr() 481 const TValue *luaH_get (Table *t, const TValue *key) { in luaH_get() [all …]
|
H A D | ldebug.h | 24 LUAI_FUNC l_noret luaG_typeerror (lua_State *L, const TValue *o, 27 LUAI_FUNC l_noret luaG_aritherror (lua_State *L, const TValue *p1, 28 const TValue *p2); 29 LUAI_FUNC l_noret luaG_ordererror (lua_State *L, const TValue *p1, 30 const TValue *p2);
|
H A D | ltm.c | 52 const TValue *luaT_gettm (Table *events, TMS event, TString *ename) { in luaT_gettm() 53 const TValue *tm = luaH_getstr(events, ename); in luaT_gettm() 63 const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) { in luaT_gettmbyobj()
|
H A D | lapi.c | 37 #define NONVALIDVALUE cast(TValue *, luaO_nilobject) 54 static TValue *index2addr (lua_State *L, int idx) { in index2addr() 57 TValue *o = ci->func + idx; in index2addr() 205 static void moveto (lua_State *L, TValue *fr, int idx) { in moveto() 206 TValue *to = index2addr(L, idx); in moveto() 226 TValue *fr; in lua_copy() 267 TValue n; in lua_isnumber() 268 const TValue *o = index2addr(L, idx); in lua_isnumber() 280 const TValue *o = index2addr(L, idx); in lua_isuserdata() 335 TValue n; in lua_tonumberx() [all …]
|
H A D | ltm.h | 52 LUAI_FUNC const TValue *luaT_gettm (Table *events, TMS event, TString *ename); 53 LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
|
H A D | ldebug.c | 215 TValue v; in collectvalidlines() 326 TValue *kvalue = &p->k[INDEXK(c)]; in kname() 505 static int isinstack (CallInfo *ci, const TValue *o) { in isinstack() 513 static const char *getupvalname (CallInfo *ci, const TValue *o, in getupvalname() 527 l_noret luaG_typeerror (lua_State *L, const TValue *o, const char *op) { in luaG_typeerror() 553 l_noret luaG_aritherror (lua_State *L, const TValue *p1, const TValue *p2) { in luaG_aritherror() 554 TValue temp; in luaG_aritherror() 561 l_noret luaG_ordererror (lua_State *L, const TValue *p1, const TValue *p2) { in luaG_ordererror()
|
H A D | lfunc.h | 15 cast(int, sizeof(TValue)*((n)-1))) 18 cast(int, sizeof(TValue *)*((n)-1)))
|
H A D | lcode.c | 290 static int addk (FuncState *fs, TValue *key, TValue *v) { in addk() 292 TValue *idx = luaH_set(L, fs->h, key); in addk() 309 luaM_growvector(L, f->k, k, f->sizek, TValue, MAXARG_Ax, "constants"); in addk() 319 TValue o; in luaK_stringK() 328 TValue o; in luaK_numberK() 343 TValue o; in boolK() 350 TValue k, v; in nilK()
|
H A D | lgc.c | 121 static int iscleared (global_State *g, const TValue *o) { in iscleared() 436 const TValue *mode = gfasttm(g, h->metatable, TM_MODE); in traversetable() 452 return sizeof(Table) + sizeof(TValue) * h->sizearray + in traversetable() 472 sizeof(TValue) * f->sizek + in traverseproto() 512 return sizeof(lua_State) + sizeof(TValue) * th->stacksize + in traversestack() 649 TValue *o = &h->array[i]; in clearvalues() 811 const TValue *tm; in GCTM() 812 TValue v; in GCTM()
|
H A D | ldo.h | 23 #define restorestack(L,n) ((TValue *)((char *)L->stack + (n)))
|
H A D | lstate.c | 134 L1->stack = luaM_newvector(L, BASIC_STACK_SIZE, TValue); in stack_init() 164 TValue mt; in init_registry()
|
H A D | lundump.c | 100 f->k=luaM_newvector(S->L,n,TValue); in LoadConstants() 105 TValue* o=&f->k[i]; in LoadConstants()
|
H A D | ldo.c | 146 static void correctstack (lua_State *L, TValue *oldstack) { in correctstack() 166 TValue *oldstack = L->stack; in luaD_reallocstack() 170 luaM_reallocvector(L, L->stack, L->stacksize, newsize, TValue); in luaD_reallocstack() 279 const TValue *tm = luaT_gettmbyobj(L, func, TM_CALL); in tryfuncTM()
|
H A D | lstate.h | 120 TValue l_registry;
|
H A D | ldump.c | 86 const TValue* o=&f->k[i]; in DumpConstants()
|
H A D | lobject.c | 25 LUAI_DDEF const TValue luaO_nilobject_ = {NILCONSTANT};
|
H A D | llex.c | 124 TValue *o; /* entry for `str' */ in luaX_newstring()
|
H A D | lparser.c | 564 luaM_reallocvector(L, f->k, f->sizek, fs->nk, TValue); in close_func()
|