Home
last modified time | relevance | path

Searched refs:gch (Results 1 – 13 of 13) sorted by relevance

/f-stack/freebsd/contrib/openzfs/module/lua/
H A Dlstate.h188 GCheader gch; /* common header */ member
199 #define gch(o) (&(o)->gch) macro
203 check_exp(novariant((o)->gch.tt) == LUA_TSTRING, &((o)->ts))
205 #define rawgco2u(o) check_exp((o)->gch.tt == LUA_TUSERDATA, &((o)->u))
207 #define gco2lcl(o) check_exp((o)->gch.tt == LUA_TLCL, &((o)->cl.l))
208 #define gco2ccl(o) check_exp((o)->gch.tt == LUA_TCCL, &((o)->cl.c))
210 check_exp(novariant((o)->gch.tt) == LUA_TFUNCTION, &((o)->cl))
211 #define gco2t(o) check_exp((o)->gch.tt == LUA_TTABLE, &((o)->h))
212 #define gco2p(o) check_exp((o)->gch.tt == LUA_TPROTO, &((o)->p))
213 #define gco2uv(o) check_exp((o)->gch.tt == LUA_TUPVAL, &((o)->uv))
[all …]
H A Dlgc.h100 #define iswhite(x) testbits((x)->gch.marked, WHITEBITS)
101 #define isblack(x) testbit((x)->gch.marked, BLACKBIT)
103 (!testbits((x)->gch.marked, WHITEBITS | bitmask(BLACKBIT)))
105 #define isold(x) testbit((x)->gch.marked, OLDBIT)
109 #define resetoldbit(o) resetbit((o)->gch.marked, OLDBIT)
113 #define isdead(g,v) isdeadm(otherwhite(g), (v)->gch.marked)
115 #define changewhite(x) ((x)->gch.marked ^= WHITEBITS)
116 #define gray2black(x) l_setbit((x)->gch.marked, BLACKBIT)
H A Dlgc.c59 (gch(x)->marked = cast_byte((gch(x)->marked & maskcolors) | luaC_white(g)))
138 lua_assert(gch(o)->tt != LUA_TTABLE); in luaC_barrier_()
218 gch(o)->marked = luaC_white(g); in luaC_newobj()
219 gch(o)->tt = tt; in luaC_newobj()
220 gch(o)->next = *list; in luaC_newobj()
245 switch (gch(o)->tt) { in reallymarkobject()
525 switch (gch(o)->tt) { in propagatemark()
663 switch (gch(o)->tt) { in freeobj()
735 int marked = gch(curr)->marked; in sweeplist()
862 lastnext = &gch(curr)->next; in separatetobefnz()
[all …]
H A Dlstring.c77 GCObject *next = gch(p)->next; /* save next */ in luaS_resize()
79 gch(p)->next = tb->hash[h]; /* chain it */ in luaS_resize()
140 o = gch(o)->next) { in internshrstr()
H A Dlobject.h175 #define righttt(obj) (ttype(obj) == gcvalue(obj)->gch.tt)
201 val_(io).gc=i_g; settt_(io, ctb(gch(i_g)->tt)); }
H A Dlfunc.c101 gch(o)->next = g->allgc; /* link upvalue into 'allgc' list */ in luaF_close()
H A Dldo.c216 for (up = L->openupval; up != NULL; up = up->gch.next) in correctstack()
/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dlstate.h137 GCheader gch; member
149 #define rawgco2ts(o) check_exp((o)->gch.tt == LUA_TSTRING, &((o)->ts))
151 #define rawgco2u(o) check_exp((o)->gch.tt == LUA_TUSERDATA, &((o)->u))
153 #define gco2cl(o) check_exp((o)->gch.tt == LUA_TFUNCTION, &((o)->cl))
154 #define gco2h(o) check_exp((o)->gch.tt == LUA_TTABLE, &((o)->h))
155 #define gco2p(o) check_exp((o)->gch.tt == LUA_TPROTO, &((o)->p))
156 #define gco2uv(o) check_exp((o)->gch.tt == LUA_TUPVAL, &((o)->uv))
158 check_exp((o) == NULL || (o)->gch.tt == LUA_TUPVAL, &((o)->uv))
159 #define gco2th(o) check_exp((o)->gch.tt == LUA_TTHREAD, &((o)->th))
H A Dlgc.c35 ((x)->gch.marked = cast_byte(((x)->gch.marked & maskmarks) | luaC_white(g)))
72 switch (o->gch.tt) { in reallymarkobject()
119 u = u->gch.next; in marktmu()
138 p = &curr->gch.next; in luaC_separateudata()
143 *p = curr->gch.next; in luaC_separateudata()
148 curr->gch.next = g->tmudata->gch.next; in luaC_separateudata()
281 switch (o->gch.tt) { in propagatemark()
379 switch (o->gch.tt) { in freeobj()
417 p = &curr->gch.next; in sweeplist()
421 *p = curr->gch.next; in sweeplist()
[all …]
H A Dlgc.h65 #define iswhite(x) test2bits((x)->gch.marked, WHITE0BIT, WHITE1BIT)
66 #define isblack(x) testbit((x)->gch.marked, BLACKBIT)
70 #define isdead(g,v) ((v)->gch.marked & otherwhite(g) & WHITEBITS)
72 #define changewhite(x) ((x)->gch.marked ^= WHITEBITS)
73 #define gray2black(x) l_setbit((x)->gch.marked, BLACKBIT)
H A Dlstring.c35 GCObject *next = p->gch.next; /* save next */ in luaS_resize()
39 p->gch.next = newhash[h1]; /* chain it */ in luaS_resize()
84 o = o->gch.next) { in luaS_newlstr()
H A Dlobject.h109 lua_assert(!iscollectable(obj) || (ttype(obj) == (obj)->value.gc->gch.tt))
113 ((ttype(obj) == (obj)->value.gc->gch.tt) && !isdead(g, (obj)->value.gc)))
H A Dldo.c130 for (up = L->openupval; up != NULL; up = up->gch.next) in correctstack()