Home
last modified time | relevance | path

Searched refs:uv (Results 1 – 9 of 9) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlfunc.c40 UpVal *uv = &luaC_newobj(L, LUA_TUPVAL, sizeof(UpVal), NULL, 0)->uv; in luaF_newupval() local
41 uv->v = &uv->u.value; in luaF_newupval()
42 setnilvalue(uv->v); in luaF_newupval()
43 return uv; in luaF_newupval()
51 UpVal *uv; in luaF_findupval() local
64 uv = &luaC_newobj(L, LUA_TUPVAL, sizeof(UpVal), pp, 0)->uv; in luaF_findupval()
65 uv->v = level; /* current value lives in the stack */ in luaF_findupval()
66 uv->u.l.prev = &g->uvhead; /* double link it in `uvhead' list */ in luaF_findupval()
67 uv->u.l.next = g->uvhead.u.l.next; in luaF_findupval()
68 uv->u.l.next->u.l.prev = uv; in luaF_findupval()
[all …]
Dlstate.h192 struct UpVal uv; member
204 #define gco2u(o) (&rawgco2u(o)->uv)
211 #define gco2uv(o) check_exp((o)->gch.tt == LUA_TUPVAL, &((o)->uv))
Dlgc.c190 void luaC_checkupvalcolor (global_State *g, UpVal *uv) { in luaC_checkupvalcolor() argument
191 GCObject *o = obj2gco(uv); in luaC_checkupvalcolor()
197 markvalue(g, uv->v); in luaC_checkupvalcolor()
260 UpVal *uv = gco2uv(o); in reallymarkobject() local
261 markvalue(g, uv->v); in reallymarkobject()
262 if (uv->v != &uv->u.value) /* open? */ in reallymarkobject()
325 UpVal *uv; in remarkupvals() local
326 for (uv = g->uvhead.u.l.next; uv != &g->uvhead; uv = uv->u.l.next) { in remarkupvals()
327 if (isgray(obj2gco(uv))) in remarkupvals()
328 markvalue(g, uv->v); in remarkupvals()
Dlstring.c180 u->uv.len = s; in luaS_newudata()
181 u->uv.metatable = NULL; in luaS_newudata()
182 u->uv.env = e; in luaS_newudata()
Dlvm.c383 Upvaldesc *uv = p->upvalues; in getcached() local
386 TValue *v = uv[i].instack ? base + uv[i].idx : encup[uv[i].idx]->v; in getcached()
404 Upvaldesc *uv = p->upvalues; in pushclosure() local
410 if (uv[i].instack) /* upvalue refers to local variable? */ in pushclosure()
411 ncl->l.upvals[i] = luaF_findupval(L, base + uv[i].idx); in pushclosure()
413 ncl->l.upvals[i] = encup[uv[i].idx]; in pushclosure()
596 UpVal *uv = cl->upvals[GETARG_B(i)]; in luaV_execute()
597 setobj(L, uv->v, ra); in luaV_execute()
598 luaC_barrier(L, uv, ra); in luaV_execute()
Dlfunc.h28 LUAI_FUNC void luaF_freeupval (lua_State *L, UpVal *uv);
Dldebug.c100 static const char *upvalname (Proto *p, int uv) { in upvalname() argument
101 TString *s = check_exp(uv < p->sizeupvalues, p->upvalues[uv].name); in upvalname()
Dlgc.h154 LUAI_FUNC void luaC_checkupvalcolor (global_State *g, UpVal *uv);
Dlobject.h159 #define uvalue(o) (&rawuvalue(o)->uv)
438 } uv; member