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 /lobject.h | |
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 '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.118 2017/04/11 18:41:09 roberto Exp roberto $ | 2 | ** $Id: lobject.h,v 2.119 2017/04/24 18:06:12 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 | */ |
@@ -410,6 +410,7 @@ typedef struct Proto { | |||
410 | lu_byte numparams; /* number of fixed parameters */ | 410 | lu_byte numparams; /* number of fixed parameters */ |
411 | lu_byte is_vararg; | 411 | lu_byte is_vararg; |
412 | lu_byte maxstacksize; /* number of registers needed by this function */ | 412 | lu_byte maxstacksize; /* number of registers needed by this function */ |
413 | lu_byte cachemiss; /* count for successive misses for 'cache' field */ | ||
413 | int sizeupvalues; /* size of 'upvalues' */ | 414 | int sizeupvalues; /* size of 'upvalues' */ |
414 | int sizek; /* size of 'k' */ | 415 | int sizek; /* size of 'k' */ |
415 | int sizecode; | 416 | int sizecode; |