information about upvalues (where they come from) kept in Proto structure,

instead of sequence of pseudo-opcodes after OP_CLOSURE
This commit is contained in:
Roberto Ierusalimschy
2009-09-28 13:32:50 -03:00
parent 1829911d7c
commit 5938212748
14 changed files with 97 additions and 98 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lparser.h,v 1.57 2006/03/09 18:14:31 roberto Exp roberto $
** $Id: lparser.h,v 1.58 2008/05/08 15:44:51 roberto Exp roberto $
** Lua Parser
** See Copyright Notice in lua.h
*/
@@ -46,12 +46,6 @@ typedef struct expdesc {
} expdesc;
typedef struct upvaldesc {
lu_byte k;
lu_byte info;
} upvaldesc;
typedef struct vardesc {
unsigned short idx;
} vardesc;
@@ -76,7 +70,7 @@ typedef struct FuncState {
int np; /* number of elements in `p' */
short nlocvars; /* number of elements in `locvars' */
lu_byte nactvar; /* number of active local variables */
upvaldesc upvalues[LUAI_MAXUPVALUES]; /* upvalues */
lu_byte nups; /* number of upvalues */
vardesc actvar[LUAI_MAXVARS]; /* declared-variable stack */
} FuncState;