Index: src/mips/stub-cache-mips.cc |
diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc |
index fc7315781c272dabbd9ab73700c5de2c446ae3d4..7fada5424b559f2fab6b72552e27fdf5dcfc6e41 100644 |
--- a/src/mips/stub-cache-mips.cc |
+++ b/src/mips/stub-cache-mips.cc |
@@ -196,8 +196,8 @@ void StubCache::GenerateProbe(MacroAssembler* masm, |
uint32_t mask = kPrimaryTableSize - 1; |
// We shift out the last two bits because they are not part of the hash and |
// they are always 01 for maps. |
- __ srl(scratch, scratch, kHeapObjectTagSize); |
- __ Xor(scratch, scratch, Operand((flags >> kHeapObjectTagSize) & mask)); |
+ __ srl(scratch, scratch, kCacheIndexShift); |
+ __ Xor(scratch, scratch, Operand((flags >> kCacheIndexShift) & mask)); |
__ And(scratch, scratch, Operand(mask)); |
// Probe the primary table. |
@@ -213,10 +213,10 @@ void StubCache::GenerateProbe(MacroAssembler* masm, |
extra3); |
// Primary miss: Compute hash for secondary probe. |
- __ srl(at, name, kHeapObjectTagSize); |
+ __ srl(at, name, kCacheIndexShift); |
__ Subu(scratch, scratch, at); |
uint32_t mask2 = kSecondaryTableSize - 1; |
- __ Addu(scratch, scratch, Operand((flags >> kHeapObjectTagSize) & mask2)); |
+ __ Addu(scratch, scratch, Operand((flags >> kCacheIndexShift) & mask2)); |
__ And(scratch, scratch, Operand(mask2)); |
// Probe the secondary table. |