cleaner implementation of code generation for jumps

This commit is contained in:
Roberto Ierusalimschy
2002-05-10 16:22:11 -03:00
parent b487975344
commit 2dadc81822
4 changed files with 46 additions and 53 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lparser.h,v 1.41 2002/03/25 17:47:14 roberto Exp roberto $
** $Id: lparser.h,v 1.42 2002/05/09 18:00:38 roberto Exp roberto $
** Lua Parser
** See Copyright Notice in lua.h
*/
@@ -63,7 +63,7 @@ typedef struct FuncState {
struct BlockCnt *bl; /* chain of current blocks */
int pc; /* next position to code (equivalent to `ncode') */
int lasttarget; /* `pc' of last `jump target' */
int jlt; /* list of jumps to `lasttarget' */
int jpc; /* list of jumps to `pc' */
int freereg; /* first free register */
int defaultglob; /* where to look for non-declared globals */
int nk; /* number of elements in `k' */