Home
last modified time | relevance | path

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

/f-stack/freebsd/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 Dltable.c439 luaC_barrierback(L, obj2gco(t), key); in luaH_newkey()
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 Dlapi.c1192 if (owner) *owner = obj2gco(f); in aux_upvalue()
1201 if (owner) *owner = obj2gco(f->upvals[n - 1]); in aux_upvalue()
/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dlgc.h86 #define luaC_barrier(L,p,v) { if (valiswhite(v) && isblack(obj2gco(p))) \
87 luaC_barrierf(L,obj2gco(p),gcvalue(v)); }
89 #define luaC_barriert(L,t,v) { if (valiswhite(v) && isblack(obj2gco(t))) \
93 { if (iswhite(obj2gco(o)) && isblack(obj2gco(p))) \
94 luaC_barrierf(L,obj2gco(p),obj2gco(o)); }
97 { if (iswhite(obj2gco(o)) && isblack(obj2gco(t))) luaC_barrierback(L,t); }
H A Dlfunc.c25 luaC_link(L, obj2gco(c), LUA_TFUNCTION); in luaF_newCclosure()
35 luaC_link(L, obj2gco(c), LUA_TFUNCTION); in luaF_newLclosure()
46 luaC_link(L, obj2gco(uv), LUA_TUPVAL); in luaF_newupval()
61 if (isdead(g, obj2gco(p))) /* is it dead? */ in luaF_findupval()
62 changewhite(obj2gco(p)); /* ressurect it */ in luaF_findupval()
72 *pp = obj2gco(uv); in luaF_findupval()
100 GCObject *o = obj2gco(uv); in luaF_close()
117 luaC_link(L, obj2gco(f), LUA_TPROTO); in luaF_newproto()
H A Dlstate.c109 lua_assert(g->rootgc == obj2gco(L)); in close_state()
121 luaC_link(L, obj2gco(L1), LUA_TTHREAD); in luaE_newthread()
129 lua_assert(iswhite(obj2gco(L1))); in luaE_newthread()
170 g->rootgc = obj2gco(L); in lua_newstate()
H A Dlstring.c67 tb->hash[h] = obj2gco(ts); in newlstr()
108 G(L)->mainthread->next = obj2gco(u); in luaS_newudata()
H A Dlgc.c55 #define markobject(g,t) { if (iswhite(obj2gco(t))) \
56 reallymarkobject(g, obj2gco(t)); }
174 g->weak = obj2gco(h); /* ... so put in the appropriate list */ in traversetable()
519 if (isgray(obj2gco(uv))) in remarkupvals()
535 lua_assert(!iswhite(obj2gco(g->mainthread))); in atomic()
676 GCObject *o = obj2gco(t); in luaC_barrierback()
696 GCObject *o = obj2gco(uv); in luaC_linkupval()
H A Dlstate.h162 #define obj2gco(v) (cast(GCObject *, (v))) macro
H A Dltable.c360 luaC_link(L, obj2gco(t), LUA_TTABLE); in luaH_new()
H A Dldo.c238 lua_assert(iswhite(obj2gco(htab))); in adjust_varargs()
H A Dlapi.c497 lua_assert(iswhite(obj2gco(cl))); in lua_pushcclosure()