aboutsummaryrefslogtreecommitdiff
path: root/lobject.h
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-30 17:43:26 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2017-04-30 17:43:26 -0300
commit8634b2a0119e698e362fdb765f30258e79e1dfd0 (patch)
treec20c79efbbf0bc8fa565c34932e283fc428c9219 /lobject.h
parent5ecb31003f8086f057444468d0356771526ec7b4 (diff)
downloadlua-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.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lobject.h b/lobject.h
index c8f9adb3..f8a73a14 100644
--- a/lobject.h
+++ b/lobject.h
@@ -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;