| Index: src/objects-inl.h
|
| ===================================================================
|
| --- src/objects-inl.h (revision 550)
|
| +++ src/objects-inl.h (working copy)
|
| @@ -2196,11 +2196,12 @@
|
|
|
|
|
| void StringHasher::AddCharacter(uc32 c) {
|
| - // Note: the Jenkins one-at-a-time hash function
|
| + // Use the Jenkins one-at-a-time hash function to update the hash
|
| + // for the given character.
|
| raw_running_hash_ += c;
|
| raw_running_hash_ += (raw_running_hash_ << 10);
|
| raw_running_hash_ ^= (raw_running_hash_ >> 6);
|
| - // Incremental array index computation
|
| + // Incremental array index computation.
|
| if (is_array_index_) {
|
| if (c < '0' || c > '9') {
|
| is_array_index_ = false;
|
|
|