diff ir/irfunction.h @ 1212:df2227fdc860

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.
author Frits van Bommel <fvbommel wxs.nl>
date Mon, 13 Apr 2009 04:09:08 +0200
parents 8699c450a1a0
children 033f18ec1371
line wrap: on
line diff
--- a/ir/irfunction.h	Sun Apr 12 22:22:15 2009 +0200
+++ b/ir/irfunction.h	Mon Apr 13 04:09:08 2009 +0200
@@ -46,6 +46,7 @@
     
     llvm::Value* nestedVar; // nested var alloca
     const llvm::StructType* framesType; // type of nested context (not for -nested-ctx=array)
+    bool elidedCtxList; // whether the nested context is a raw frame instead of a list of frames (-nested-ctx=hybrid only)
     
     llvm::Value* _arguments;
     llvm::Value* _argptr;