/freebsd/sys/contrib/openzfs/module/lua/ |
H A D | lgc.h | 127 #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 D | lgc.c | 76 #define markobject(g,t) { if ((t) && iswhite(obj2gco(t))) \ 77 reallymarkobject(g, obj2gco(t)); } 98 #define linktable(h,p) ((h)->gclist = *(p), *(p) = obj2gco(h)) 172 lua_assert(isblack(obj2gco(p))); in luaC_barrierproto_() 177 black2gray(obj2gco(p)); /* make prototype gray (again) */ in luaC_barrierproto_() 179 g->grayagain = obj2gco(p); in luaC_barrierproto_() 189 GCObject *o = obj2gco(uv); in luaC_checkupvalcolor() 214 GCObject *o = obj2gco(raw + offset); in luaC_newobj() 325 if (isgray(obj2gco(uv))) in remarkupvals() 440 black2gray(obj2gco(h)); /* keep table gray */ in traversetable() [all …]
|
H A D | lfunc.c | 51 GCObject *o = obj2gco(p); in luaF_findupval() 53 lua_assert(!isold(o) || isold(obj2gco(L))); in luaF_findupval() 91 GCObject *o = obj2gco(uv); in luaF_close()
|
H A D | lstate.h | 216 #define obj2gco(v) (cast(GCObject *, (v))) macro
|
H A D | lvm.c | 156 luaC_barrierback(L, obj2gco(h), val); in luaV_settable() 892 luaC_barrierback(L, obj2gco(h), val); in luaV_execute()
|
H A D | ltable.c | 438 luaC_barrierback(L, obj2gco(t), key); in luaH_newkey()
|
H A D | lapi.c | 1193 if (owner) *owner = obj2gco(f); in aux_upvalue() 1202 if (owner) *owner = obj2gco(f->upvals[n - 1]); in aux_upvalue()
|
/freebsd/contrib/lua/src/ |
H A D | lobject.h | 270 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_VTHREAD)); \ 373 val_(io).gc = obj2gco(x_); settt_(io, ctb(x_->tt)); \ 446 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_VUSERDATA)); \ 612 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_VLCL)); \ 622 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_VCCL)); \ 688 val_(io).gc = obj2gco(x_); settt_(io, ctb(LUA_VTABLE)); \
|
H A D | lgc.h | 177 luaC_barrier_(L,obj2gco(p),obj2gco(o)) : cast_void(0))
|
H A D | lgc.c | 99 #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)) 518 genlink(g, obj2gco(h)); /* check whether collector still needs to see it */ in traverseephemeron() 538 genlink(g, obj2gco(h)); in traversestrongtable() 568 genlink(g, obj2gco(u)); in traverseudata() 1516 deletelist(L, g->allgc, obj2gco(g->mainthread)); in luaC_freeallobjects()
|
H A D | ltests.c | 351 #define checkobjrefN(g,f,t) { if (t) checkobjref(g,f,obj2gco(t)); } 363 GCObject *hgc = obj2gco(h); in checktable() 381 GCObject *hgc = obj2gco(u); in checkudata() 390 GCObject *fgc = obj2gco(f); in checkproto() 406 GCObject *clgc = obj2gco(cl); in checkCclosure() 414 GCObject *clgc = obj2gco(cl); in checkLclosure() 422 checkvalref(g, obj2gco(uv), uv->v.p); in checkLclosure()
|
H A D | llex.c | 73 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 D | lstate.h | 390 #define obj2gco(v) check_exp((v)->tt >= LUA_TSTRING, &(cast_u(v)->gc)) macro
|
H A D | lstring.c | 132 luaC_fix(L, obj2gco(g->memerrmsg)); /* it should never be collected */ in luaS_init()
|
H A D | ltm.c | 51 luaC_fix(L, obj2gco(G(L)->tmname[i])); /* never collect these names */ in luaT_init()
|
H A D | lapi.c | 903 luaC_barrierback(L, obj2gco(t), s2v(L->top.p - 1)); in aux_rawset() 927 luaC_barrierback(L, obj2gco(t), s2v(L->top.p - 1)); in lua_rawseti() 1365 if (owner) *owner = obj2gco(f); in aux_upvalue() 1375 if (owner) *owner = obj2gco(f->upvals[n - 1]); in aux_upvalue()
|
H A D | lstate.c | 372 g->allgc = obj2gco(L); /* by now, only object is the main thread */ in lua_newstate()
|
H A D | ltable.c | 716 luaC_barrierback(L, obj2gco(t), key); in luaH_newkey()
|
H A D | lvm.c | 346 luaC_barrierback(L, obj2gco(h), val); in luaV_finishset() 1871 luaC_barrierback(L, obj2gco(h), val); in luaV_execute()
|