Index: src/arm/stub-cache-arm.cc |
diff --git a/src/arm/stub-cache-arm.cc b/src/arm/stub-cache-arm.cc |
index 1898dbc6fb2704c9fee39495c8eff4fde57d90c8..50c3ff12d9db508e460c22a36c733d5bbced90db 100644 |
--- a/src/arm/stub-cache-arm.cc |
+++ b/src/arm/stub-cache-arm.cc |
@@ -202,10 +202,10 @@ 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. |
- __ mov(scratch, Operand(scratch, LSR, kHeapObjectTagSize)); |
+ __ mov(scratch, Operand(scratch, LSR, kCacheIndexShift)); |
// Mask down the eor argument to the minimum to keep the immediate |
// ARM-encodable. |
- __ eor(scratch, scratch, Operand((flags >> kHeapObjectTagSize) & mask)); |
+ __ eor(scratch, scratch, Operand((flags >> kCacheIndexShift) & mask)); |
// Prefer and_ to ubfx here because ubfx takes 2 cycles. |
__ and_(scratch, scratch, Operand(mask)); |
@@ -222,9 +222,9 @@ void StubCache::GenerateProbe(MacroAssembler* masm, |
extra3); |
// Primary miss: Compute hash for secondary probe. |
- __ sub(scratch, scratch, Operand(name, LSR, kHeapObjectTagSize)); |
+ __ sub(scratch, scratch, Operand(name, LSR, kCacheIndexShift)); |
uint32_t mask2 = kSecondaryTableSize - 1; |
- __ add(scratch, scratch, Operand((flags >> kHeapObjectTagSize) & mask2)); |
+ __ add(scratch, scratch, Operand((flags >> kCacheIndexShift) & mask2)); |
__ and_(scratch, scratch, Operand(mask2)); |
// Probe the secondary table. |