diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-06-04 10:25:10 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2010-06-04 10:25:10 -0300 |
| commit | 575074fd857b90cd7c14c7b172e8fe147080962a (patch) | |
| tree | 6929e87845a56266061235f89213795806ee5291 /lobject.h | |
| parent | 545f43065ff8fa20e5f8254e6270d00694b847dd (diff) | |
| download | lua-575074fd857b90cd7c14c7b172e8fe147080962a.tar.gz lua-575074fd857b90cd7c14c7b172e8fe147080962a.tar.bz2 lua-575074fd857b90cd7c14c7b172e8fe147080962a.zip | |
Lua closures are cached for reuse
Diffstat (limited to 'lobject.h')
| -rw-r--r-- | lobject.h | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lobject.h,v 2.39 2010/04/18 13:22:48 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.40 2010/05/07 18:44:46 roberto Exp roberto $ |
| 3 | ** Type definitions for Lua objects | 3 | ** Type definitions for Lua objects |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -266,6 +266,7 @@ typedef struct Proto { | |||
| 266 | int *lineinfo; /* map from opcodes to source lines */ | 266 | int *lineinfo; /* map from opcodes to source lines */ |
| 267 | struct LocVar *locvars; /* information about local variables */ | 267 | struct LocVar *locvars; /* information about local variables */ |
| 268 | Upvaldesc *upvalues; /* upvalue information */ | 268 | Upvaldesc *upvalues; /* upvalue information */ |
| 269 | union Closure *cache; /* last created closure with this prototype */ | ||
| 269 | TString *source; | 270 | TString *source; |
| 270 | int sizeupvalues; /* size of 'upvalues' */ | 271 | int sizeupvalues; /* size of 'upvalues' */ |
| 271 | int sizek; /* size of `k' */ | 272 | int sizek; /* size of `k' */ |
