Index: src/heap.h |
=================================================================== |
--- src/heap.h (revision 10474) |
+++ src/heap.h (working copy) |
@@ -2135,11 +2135,11 @@ |
// Clear the cache. |
void Clear(); |
- static const int kLength = 128; |
+ static const int kLength = 256; |
static const int kCapacityMask = kLength - 1; |
static const int kMapHashShift = 5; |
- static const int kHashMask = -2; // Zero the last bit. |
- static const int kEntriesPerBucket = 2; |
+ static const int kHashMask = -4; // Zero the last two bits. |
+ static const int kEntriesPerBucket = 4; |
Yang
2012/01/23 15:53:31
Maybe add assertions such as
STATIC_ASSERT(IS_POWE
|
static const int kNotFound = -1; |
private: |