Home
last modified time | relevance | path

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

/redis-3.2.3/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()