Home
last modified time | relevance | path

Searched refs:obj2gco (Results 1 – 15 of 15) sorted by relevance

/freebsd-12.1/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/lua/
H A Dlgc.h127 #define luaC_barrier(L,p,v) { if (valiswhite(v) && isblack(obj2gco(p))) \
128 luaC_barrier_(L,obj2gco(p),gcvalue(v)); }
130 #define luaC_barrierback(L,p,v) { if (valiswhite(v) && isblack(obj2gco(p))) \
134 { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) \
135 luaC_barrier_(L,obj2gco(p),obj2gco(o)); }
138 { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) luaC_barrierback_(L,p); }
141 { if (isblack(obj2gco(p))) luaC_barrierproto_(L,p,c); }
H A Dlgc.c78 #define markobject(g,t) { if ((t) && iswhite(obj2gco(t))) \
79 reallymarkobject(g, obj2gco(t)); }
174 lua_assert(isblack(obj2gco(p))); in luaC_barrierproto_()
181 g->grayagain = obj2gco(p); in luaC_barrierproto_()
191 GCObject *o = obj2gco(uv); in luaC_checkupvalcolor()
216 GCObject *o = obj2gco(raw + offset); in luaC_newobj()
327 if (isgray(obj2gco(uv))) in remarkupvals()
442 black2gray(obj2gco(h)); /* keep table gray */ in traversetable()
459 if (f->cache && iswhite(obj2gco(f->cache))) in traverseproto()
1003 lua_assert(!iswhite(obj2gco(g->mainthread))); in atomic()
[all …]
H A Dlfunc.c53 GCObject *o = obj2gco(p); in luaF_findupval()
55 lua_assert(!isold(o) || isold(obj2gco(L))); in luaF_findupval()
93 GCObject *o = obj2gco(uv); in luaF_close()
H A Dlstate.h215 #define obj2gco(v) (cast(GCObject *, (v))) macro
H A Dlvm.c156 luaC_barrierback(L, obj2gco(h), val); in luaV_settable()
892 luaC_barrierback(L, obj2gco(h), val); in luaV_execute()
H A Dltable.c437 luaC_barrierback(L, obj2gco(t), key); in luaH_newkey()
H A Dlapi.c1194 if (owner) *owner = obj2gco(f); in aux_upvalue()
1203 if (owner) *owner = obj2gco(f->upvals[n - 1]); in aux_upvalue()
/freebsd-12.1/contrib/lua/src/
H A Dlgc.h120 luaC_barrier_(L,obj2gco(p),gcvalue(v)) : cast_void(0))
128 luaC_barrier_(L,obj2gco(p),obj2gco(o)) : cast_void(0))
H A Dlobject.h227 val_(io).gc = obj2gco(x_); settt_(io, ctb(x_->tt)); \
232 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_TUSERDATA)); \
237 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_TTHREAD)); \
242 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_TLCL)); \
247 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_TCCL)); \
252 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_TTABLE)); \
H A Dltm.c50 luaC_fix(L, obj2gco(G(L)->tmname[i])); /* never collect these names */ in luaT_init()
H A Dllex.c73 luaC_fix(L, obj2gco(e)); /* never collect this name */ in luaX_init()
76 luaC_fix(L, obj2gco(ts)); /* reserved words are never collected */ in luaX_init()
H A Dlstate.h238 #define obj2gco(v) \ macro
H A Dlstring.c122 luaC_fix(L, obj2gco(g->memerrmsg)); /* it should never be collected */ in luaS_init()
H A Dlstate.c266 g->allgc = obj2gco(L1); in lua_newthread()
H A Dlgc.c86 #define markobject(g,t) { if (iswhite(t)) reallymarkobject(g, obj2gco(t)); }
113 #define linkgclist(o,p) ((o)->gclist = (p), (p) = obj2gco(o))