From 8634b2a0119e698e362fdb765f30258e79e1dfd0 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Sun, 30 Apr 2017 17:43:26 -0300 Subject: added 'cachemiss' field to prototype to avoid wasting time checking hits that fail too often --- lobject.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lobject.h') diff --git a/lobject.h b/lobject.h index c8f9adb3..f8a73a14 100644 --- a/lobject.h +++ b/lobject.h @@ -1,5 +1,5 @@ /* -** $Id: lobject.h,v 2.118 2017/04/11 18:41:09 roberto Exp roberto $ +** $Id: lobject.h,v 2.119 2017/04/24 18:06:12 roberto Exp roberto $ ** Type definitions for Lua objects ** See Copyright Notice in lua.h */ @@ -410,6 +410,7 @@ typedef struct Proto { lu_byte numparams; /* number of fixed parameters */ lu_byte is_vararg; lu_byte maxstacksize; /* number of registers needed by this function */ + lu_byte cachemiss; /* count for successive misses for 'cache' field */ int sizeupvalues; /* size of 'upvalues' */ int sizek; /* size of 'k' */ int sizecode; -- cgit v1.2.3-55-g6feb