From 575074fd857b90cd7c14c7b172e8fe147080962a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 4 Jun 2010 10:25:10 -0300 Subject: Lua closures are cached for reuse --- lobject.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index 986001f2..54d77960 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 2.39 2010/04/18 13:22:48 roberto Exp roberto $ +** $Id: lobject.h,v 2.40 2010/05/07 18:44:46 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -266,6 +266,7 @@ typedef struct Proto { int *lineinfo; /* map from opcodes to source lines */ struct LocVar *locvars; /* information about local variables */ Upvaldesc *upvalues; /* upvalue information */ + union Closure *cache; /* last created closure with this prototype */ TString *source; int sizeupvalues; /* size of 'upvalues' */ int sizek; /* size of `k' */ -- cgit v1.2.3-55-g6feb