diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-30 17:43:26 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2017-04-30 17:43:26 -0300 |
commit | 8634b2a0119e698e362fdb765f30258e79e1dfd0 (patch) | |
tree | c20c79efbbf0bc8fa565c34932e283fc428c9219 /lfunc.c | |
parent | 5ecb31003f8086f057444468d0356771526ec7b4 (diff) | |
download | lua-8634b2a0119e698e362fdb765f30258e79e1dfd0.tar.gz lua-8634b2a0119e698e362fdb765f30258e79e1dfd0.tar.bz2 lua-8634b2a0119e698e362fdb765f30258e79e1dfd0.zip |
added 'cachemiss' field to prototype to avoid wasting time checking
hits that fail too often
Diffstat (limited to 'lfunc.c')
-rw-r--r-- | lfunc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: lfunc.c,v 2.46 2017/04/06 13:08:56 roberto Exp roberto $ | 2 | ** $Id: lfunc.c,v 2.47 2017/04/11 18:41:09 roberto Exp roberto $ |
3 | ** Auxiliary functions to manipulate prototypes and closures | 3 | ** Auxiliary functions to manipulate prototypes and closures |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -115,6 +115,7 @@ Proto *luaF_newproto (lua_State *L) { | |||
115 | f->sizep = 0; | 115 | f->sizep = 0; |
116 | f->code = NULL; | 116 | f->code = NULL; |
117 | f->cache = NULL; | 117 | f->cache = NULL; |
118 | f->cachemiss = 0; | ||
118 | f->sizecode = 0; | 119 | f->sizecode = 0; |
119 | f->lineinfo = NULL; | 120 | f->lineinfo = NULL; |
120 | f->sizelineinfo = 0; | 121 | f->sizelineinfo = 0; |