For the outermost function needing a context frame, use the address of that

frame as the nest argument instead of the address of a single-element list
containing only that frame address.
This saves some stack space and reduces memory accesses.
This commit is contained in:
Frits van Bommel 2009-04-13 04:09:08 +02:00
parent cc492ecc82
commit 5a04c4e9a1
3 changed files with 87 additions and 29 deletions

View file

@ -109,6 +109,7 @@ IrFunction::IrFunction(FuncDeclaration* fd)
retArg = NULL;
thisArg = NULL;
nestArg = NULL;
elidedCtxList = false;
nestedVar = NULL;
framesType = NULL;