Index: src/ia32/code-stubs-ia32.cc |
=================================================================== |
--- src/ia32/code-stubs-ia32.cc (revision 10360) |
+++ src/ia32/code-stubs-ia32.cc (working copy) |
@@ -6091,14 +6091,12 @@ |
__ shl(scratch, 15); |
__ add(hash, scratch); |
- uint32_t kHashShiftCutOffMask = (1 << (32 - String::kHashShift)) - 1; |
- __ and_(hash, kHashShiftCutOffMask); |
+ __ and_(hash, String::kHashBitMask); |
// if (hash == 0) hash = 27; |
Label hash_not_zero; |
- __ test(hash, hash); |
__ j(not_zero, &hash_not_zero, Label::kNear); |
- __ mov(hash, Immediate(27)); |
+ __ mov(hash, Immediate(StringHasher::kZeroHash)); |
__ bind(&hash_not_zero); |
} |