added 'cachemiss' field to prototype to avoid wasting time checking

hits that fail too often
This commit is contained in:
Roberto Ierusalimschy
2017-04-30 17:43:26 -03:00
parent 5ecb31003f
commit 8634b2a011
4 changed files with 15 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
** $Id: lfunc.c,v 2.46 2017/04/06 13:08:56 roberto Exp roberto $
** $Id: lfunc.c,v 2.47 2017/04/11 18:41:09 roberto Exp roberto $
** Auxiliary functions to manipulate prototypes and closures
** See Copyright Notice in lua.h
*/
@@ -115,6 +115,7 @@ Proto *luaF_newproto (lua_State *L) {
f->sizep = 0;
f->code = NULL;
f->cache = NULL;
f->cachemiss = 0;
f->sizecode = 0;
f->lineinfo = NULL;
f->sizelineinfo = 0;