Index: src/objects.h |
=================================================================== |
--- src/objects.h (revision 5369) |
+++ src/objects.h (working copy) |
@@ -4215,7 +4215,7 @@ |
// Calculated hash value for a string consisting of 1 to |
// String::kMaxArrayIndexSize digits with no leading zeros (except "0"). |
// value is represented decimal value. |
- static uint32_t MakeCachedArrayIndex(uint32_t value, int length); |
+ static uint32_t MakeArrayIndexHash(uint32_t value, int length); |
private: |
@@ -4459,6 +4459,7 @@ |
kBitsPerInt - kArrayIndexValueBits - kNofHashBitFields; |
STATIC_CHECK((kArrayIndexLengthBits > 0)); |
+ STATIC_CHECK(kMaxArrayIndexSize < (1 << kArrayIndexLengthBits)); |
static const int kArrayIndexHashLengthShift = |
kArrayIndexValueBits + kNofHashBitFields; |