Home
last modified time | relevance | path

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

/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlstate.h186 GCheader gch; /* common header */ member
197 #define gch(o) (&(o)->gch) macro
201 check_exp(novariant((o)->gch.tt) == LUA_TSTRING, &((o)->ts))
203 #define rawgco2u(o) check_exp((o)->gch.tt == LUA_TUSERDATA, &((o)->u))
205 #define gco2lcl(o) check_exp((o)->gch.tt == LUA_TLCL, &((o)->cl.l))
206 #define gco2ccl(o) check_exp((o)->gch.tt == LUA_TCCL, &((o)->cl.c))
208 check_exp(novariant((o)->gch.tt) == LUA_TFUNCTION, &((o)->cl))
209 #define gco2t(o) check_exp((o)->gch.tt == LUA_TTABLE, &((o)->h))
210 #define gco2p(o) check_exp((o)->gch.tt == LUA_TPROTO, &((o)->p))
211 #define gco2uv(o) check_exp((o)->gch.tt == LUA_TUPVAL, &((o)->uv))
[all …]
Dlgc.h99 #define iswhite(x) testbits((x)->gch.marked, WHITEBITS)
100 #define isblack(x) testbit((x)->gch.marked, BLACKBIT)
102 (!testbits((x)->gch.marked, WHITEBITS | bitmask(BLACKBIT)))
104 #define isold(x) testbit((x)->gch.marked, OLDBIT)
108 #define resetoldbit(o) resetbit((o)->gch.marked, OLDBIT)
112 #define isdead(g,v) isdeadm(otherwhite(g), (v)->gch.marked)
114 #define changewhite(x) ((x)->gch.marked ^= WHITEBITS)
115 #define gray2black(x) l_setbit((x)->gch.marked, BLACKBIT)
Dlgc.c60 (gch(x)->marked = cast_byte((gch(x)->marked & maskcolors) | luaC_white(g)))
62 #define white2gray(x) resetbits(gch(x)->marked, WHITEBITS)
63 #define black2gray(x) resetbit(gch(x)->marked, BLACKBIT)
66 #define isfinalized(x) testbit(gch(x)->marked, FINALIZEDBIT)
139 lua_assert(gch(o)->tt != LUA_TTABLE); in luaC_barrier_()
157 lua_assert(isblack(o) && !isdead(g, o) && gch(o)->tt == LUA_TTABLE); in luaC_barrierback_()
219 gch(o)->marked = luaC_white(g); in luaC_newobj()
220 gch(o)->tt = (lu_byte)tt; in luaC_newobj()
221 gch(o)->next = *list; in luaC_newobj()
246 switch (gch(o)->tt) { in reallymarkobject()
[all …]
Dlstring.c78 GCObject *next = gch(p)->next; /* save next */ in luaS_resize()
80 gch(p)->next = tb->hash[h]; /* chain it */ in luaS_resize()
139 o = gch(o)->next) { in internshrstr()
Dlfunc.c102 gch(o)->next = g->allgc; /* link upvalue into 'allgc' list */ in luaF_close()
Dlobject.h177 #define righttt(obj) (ttype(obj) == gcvalue(obj)->gch.tt)
203 val_(io).gc=i_g; settt_(io, ctb(gch(i_g)->tt)); }
Dldo.c146 for (up = L->openupval; up != NULL; up = up->gch.next) in correctstack()