diff options
Diffstat (limited to 'deps/v8/src/ic/stub-cache.h')
-rw-r--r-- | deps/v8/src/ic/stub-cache.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/v8/src/ic/stub-cache.h b/deps/v8/src/ic/stub-cache.h index 0b6f9d43d1..7eaa31bd95 100644 --- a/deps/v8/src/ic/stub-cache.h +++ b/deps/v8/src/ic/stub-cache.h @@ -89,6 +89,10 @@ class StubCache { static const int kSecondaryTableBits = 9; static const int kSecondaryTableSize = (1 << kSecondaryTableBits); + // We compute the hash code for a map as follows: + // <code> = <address> ^ (<address> >> kMapKeyShift) + static const int kMapKeyShift = kPrimaryTableBits + kCacheIndexShift; + // Some magic number used in the secondary hash computation. static const int kSecondaryMagic = 0xb16ca6e5; |