HomeSort by: relevance | last modified time | path
    Searched refs:upvalues (Results 1 - 10 of 10) sorted by relevancy

  /src/external/mit/lua/dist/src/
ldump.c 164 dumpByte(D, f->upvalues[i].instack);
165 dumpByte(D, f->upvalues[i].idx);
166 dumpByte(D, f->upvalues[i].kind);
192 dumpString(D, f->upvalues[i].name);
lundump.c 213 ** Load the upvalues for a function. The names must be filled first,
221 f->upvalues = luaM_newvectorchecked(S->L, n, Upvaldesc);
224 f->upvalues[i].name = NULL;
226 f->upvalues[i].instack = loadByte(S);
227 f->upvalues[i].idx = loadByte(S);
228 f->upvalues[i].kind = loadByte(S);
260 f->upvalues[i].name = loadStringN(S, f);
luac.c 158 if (f->p[i]->sizeupvalues>0) f->p[i]->upvalues[0].instack=0;
218 #define UPVALNAME(x) ((f->upvalues[x].name) ? getstr(f->upvalues[x].name) : "-")
714 printf("upvalues (%d) for %p:\n",n,VOID(f));
718 i,UPVALNAME(i),f->upvalues[i].instack,f->upvalues[i].idx);
lfunc.c 50 ** fill a closure with new closed upvalues
67 ** open upvalues of 'L' after entry 'prev'.
74 uv->u.open.next = next; /* link it to list of open upvalues */
79 if (!isintwups(L)) { /* thread not in list of threads with upvalues? */
195 ** Close all upvalues up to the given stack level.
207 nw2black(uv); /* closed upvalues cannot be gray */
228 ** Close all upvalues and to-be-closed variables up to the given stack
233 luaF_closeupval(L, level); /* first, close the upvalues */
257 f->upvalues = NULL;
278 luaM_freearray(L, f->upvalues, f->sizeupvalues)
    [all...]
lparser.c 296 Upvaldesc *up = &fs->f->upvalues[e->u.info];
343 ** Search the upvalues of the function 'fs' for one
348 Upvaldesc *up = fs->f->upvalues;
359 checklimit(fs, fs->nups + 1, MAXUPVAL, "upvalues");
360 luaM_growvector(fs->ls->L, f->upvalues, fs->nups, f->sizeupvalues,
361 Upvaldesc, MAXUPVAL, "upvalues");
363 f->upvalues[oldsize++].name = NULL;
364 return &f->upvalues[fs->nups++];
380 up->kind = prev->f->upvalues[v->u.info].kind;
381 lua_assert(eqstr(name, prev->f->upvalues[v->u.info].name))
    [all...]
lobject.h 24 #define LUA_TUPVAL LUA_NUMTYPES /* upvalues */
569 int sizeupvalues; /* size of 'upvalues' */
581 Upvaldesc *upvalues; /* upvalue information */ member in struct:Proto
639 ** Upvalues for Lua closures
664 TValue upvalue[1]; /* list of upvalues */
671 UpVal *upvals[1]; /* list of upvalues */
ldebug.c 182 TString *s = check_exp(uv < p->sizeupvalues, p->upvalues[uv].name);
682 ** upvalues.)
lapi.c 81 else { /* upvalues */
91 return &G(L)->nilvalue; /* no upvalues */
1386 name = p->upvalues[n-1].name;
1454 return NULL; /* light C functions have no upvalues */
lgc.c 290 ** upvalues are visited and turned black here. Open upvalues are
296 ** upvalues can call this function recursively, but this recursion goes
310 set2gray(uv); /* open upvalues are kept gray */
312 set2black(uv); /* closed upvalues are visited here */
364 ** thread must be young; upvalues cannot be older than their threads; so
367 ** upvalues, as they have nothing to be checked. (If the thread gets an
377 p = &thread->twups; /* keep marked thread with upvalues in the list */
378 else { /* thread is not marked or without upvalues */
587 markobjectN(g, f->upvalues[i].name)
    [all...]
lvm.c 834 ** its upvalues.
839 Upvaldesc *uv = p->upvalues;
844 for (i = 0; i < nup; i++) { /* fill in its upvalues */
1804 luaF_closeupval(L, base); /* close upvalues from current call */
1824 if (TESTARG_k(i)) { /* may there be open upvalues? */

Completed in 24 milliseconds