aboutsummaryrefslogtreecommitdiff
path: root/src/lj_jit.h
diff options
context:
space:
mode:
authorMike Pall <mike>2011-06-29 01:51:39 +0200
committerMike Pall <mike>2011-06-29 01:52:23 +0200
commit82eca898db87bde10fbbb14a0f35ef75b6c3dcc6 (patch)
tree9b5aa8a81267664430a94fc40a131fe33c1832d7 /src/lj_jit.h
parentdeeb8196c4d4085f3cc5a3389b568de7da739190 (diff)
downloadluajit-82eca898db87bde10fbbb14a0f35ef75b6c3dcc6.tar.gz
luajit-82eca898db87bde10fbbb14a0f35ef75b6c3dcc6.tar.bz2
luajit-82eca898db87bde10fbbb14a0f35ef75b6c3dcc6.zip
Prefer recording loops over calls.
Hotcounts are decremented by 2 for loops and by 1 for calls.
Diffstat (limited to 'src/lj_jit.h')
-rw-r--r--src/lj_jit.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_jit.h b/src/lj_jit.h
index 7e26aadc..1f7ddc21 100644
--- a/src/lj_jit.h
+++ b/src/lj_jit.h
@@ -232,7 +232,7 @@ typedef struct HotPenalty {
232} HotPenalty; 232} HotPenalty;
233 233
234#define PENALTY_SLOTS 64 /* Penalty cache slot. Must be a power of 2. */ 234#define PENALTY_SLOTS 64 /* Penalty cache slot. Must be a power of 2. */
235#define PENALTY_MIN 36 /* Minimum penalty value. */ 235#define PENALTY_MIN (36*2) /* Minimum penalty value. */
236#define PENALTY_MAX 60000 /* Maximum penalty value. */ 236#define PENALTY_MAX 60000 /* Maximum penalty value. */
237#define PENALTY_RNDBITS 4 /* # of random bits to add to penalty value. */ 237#define PENALTY_RNDBITS 4 /* # of random bits to add to penalty value. */
238 238