Home
last modified time | relevance | path

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

/freebsd-13.1/sys/contrib/openzfs/module/lua/
H A Dlgc.h128 #define luaC_barrier(L,p,v) { if (valiswhite(v) && isblack(obj2gco(p))) \
129 luaC_barrier_(L,obj2gco(p),gcvalue(v)); }
131 #define luaC_barrierback(L,p,v) { if (valiswhite(v) && isblack(obj2gco(p))) \
135 { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) \
136 luaC_barrier_(L,obj2gco(p),obj2gco(o)); }
139 { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) luaC_barrierback_(L,p); }
142 { if (isblack(obj2gco(p))) luaC_barrierproto_(L,p,c); }
H A Dlgc.c77 #define markobject(g,t) { if ((t) && iswhite(obj2gco(t))) \
78 reallymarkobject(g, obj2gco(t)); }
173 lua_assert(isblack(obj2gco(p))); in luaC_barrierproto_()
180 g->grayagain = obj2gco(p); in luaC_barrierproto_()
190 GCObject *o = obj2gco(uv); in luaC_checkupvalcolor()
215 GCObject *o = obj2gco(raw + offset); in luaC_newobj()
326 if (isgray(obj2gco(uv))) in remarkupvals()
441 black2gray(obj2gco(h)); /* keep table gray */ in traversetable()
458 if (f->cache && iswhite(obj2gco(f->cache))) in traverseproto()
1002 lua_assert(!iswhite(obj2gco(g->mainthread))); in atomic()
[all …]
H A Dlfunc.c52 GCObject *o = obj2gco(p); in luaF_findupval()
54 lua_assert(!isold(o) || isold(obj2gco(L))); in luaF_findupval()
92 GCObject *o = obj2gco(uv); in luaF_close()
H A Dlstate.h217 #define obj2gco(v) (cast(GCObject *, (v))) macro
H A Dlvm.c157 luaC_barrierback(L, obj2gco(h), val); in luaV_settable()
893 luaC_barrierback(L, obj2gco(h), val); in luaV_execute()
H A Dltable.c439 luaC_barrierback(L, obj2gco(t), key); in luaH_newkey()
H A Dlapi.c1192 if (owner) *owner = obj2gco(f); in aux_upvalue()
1201 if (owner) *owner = obj2gco(f->upvals[n - 1]); in aux_upvalue()
/freebsd-13.1/contrib/lua/src/
H A Dlgc.h167 luaC_barrier_(L,obj2gco(p),gcvalue(v)) : cast_void(0))
175 luaC_barrier_(L,obj2gco(p),obj2gco(o)) : cast_void(0))
H A Dlobject.h248 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_VTHREAD)); \
351 val_(io).gc = obj2gco(x_); settt_(io, ctb(x_->tt)); \
424 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_VUSERDATA)); \
589 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_VLCL)); \
599 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_VCCL)); \
663 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_VTABLE)); \
H A Dlgc.c99 #define markobject(g,t) { if (iswhite(t)) reallymarkobject(g, obj2gco(t)); }
146 #define linkgclist(o,p) linkgclist_(obj2gco(o), &(o)->gclist, &(p))
159 #define linkobjgclist(o,p) linkgclist_(obj2gco(o), getgclist(o), &(p))
512 genlink(g, obj2gco(h)); /* check whether collector still needs to see it */ in traverseephemeron()
532 genlink(g, obj2gco(h)); in traversestrongtable()
562 genlink(g, obj2gco(u)); in traverseudata()
1509 deletelist(L, g->allgc, obj2gco(g->mainthread)); in luaC_freeallobjects()
H A Dlstate.c297 g->allgc = obj2gco(L1); in lua_newthread()
361 g->allgc = obj2gco(L); /* by now, only object is the main thread */ in lua_newstate()
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.h347 #define obj2gco(v) check_exp((v)->tt >= LUA_TSTRING, &(cast_u(v)->gc)) macro
H A Dlapi.c871 luaC_barrierback(L, obj2gco(t), s2v(L->top - 1)); in aux_rawset()
895 luaC_barrierback(L, obj2gco(t), s2v(L->top - 1)); in lua_rawseti()
1333 if (owner) *owner = obj2gco(f); in aux_upvalue()
1343 if (owner) *owner = obj2gco(f->upvals[n - 1]); in aux_upvalue()
H A Dlstring.c132 luaC_fix(L, obj2gco(g->memerrmsg)); /* it should never be collected */ in luaS_init()
H A Dltm.c51 luaC_fix(L, obj2gco(G(L)->tmname[i])); /* never collect these names */ in luaT_init()
H A Dltable.c683 luaC_barrierback(L, obj2gco(t), key); in luaH_newkey()
H A Dlvm.c352 luaC_barrierback(L, obj2gco(h), val); in luaV_finishset()
1804 luaC_barrierback(L, obj2gco(h), val); in luaV_execute()