first implementation of lexical environments

This commit is contained in:
Roberto Ierusalimschy
2009-09-30 12:38:37 -03:00
parent 5938212748
commit 0ac3d07ea6
7 changed files with 68 additions and 22 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lundump.c,v 2.10 2009/04/30 17:42:21 roberto Exp roberto $
** $Id: lundump.c,v 2.11 2009/09/28 16:32:50 roberto Exp roberto $
** load precompiled Lua chunks
** See Copyright Notice in lua.h
*/
@@ -180,6 +180,7 @@ static Proto* LoadFunction(LoadState* S, TString* p)
f->numparams=LoadByte(S);
f->is_vararg=LoadByte(S);
f->maxstacksize=LoadByte(S);
f->envreg=LoadByte(S);
LoadCode(S,f);
LoadConstants(S,f);
LoadUpvalues(S,f);