Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index ee545904148292d5a58734a0cf32364d9191f92c..12ddd8145e38decd00e98c6902a084151f71dfdb 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -4032,13 +4032,12 @@ void MacroAssembler::RememberedSetHelper(Register object, // For debug tests. |
Str(scratch1, MemOperand(scratch2)); |
// Call stub on end of buffer. |
// Check for end of buffer. |
- DCHECK(StoreBuffer::kStoreBufferOverflowBit == |
- (1 << (14 + kPointerSizeLog2))); |
+ Tst(scratch1, StoreBuffer::kStoreBufferMask); |
if (and_then == kFallThroughAtEnd) { |
- Tbz(scratch1, (14 + kPointerSizeLog2), &done); |
+ B(ne, &done); |
} else { |
DCHECK(and_then == kReturnAtEnd); |
- Tbnz(scratch1, (14 + kPointerSizeLog2), &store_buffer_overflow); |
+ B(eq, &store_buffer_overflow); |
Ret(); |
} |