Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index 054b99d0066f3a78231845bba7e5c326b30aca88..e28003de38e7dd84691716280799e162f042d732 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -4176,8 +4176,8 @@ void MacroAssembler::HasColor(Register object, |
// These bit sequences are backwards. The first character in the string |
// represents the least significant bit. |
DCHECK(strcmp(Marking::kWhiteBitPattern, "00") == 0); |
- DCHECK(strcmp(Marking::kBlackBitPattern, "10") == 0); |
- DCHECK(strcmp(Marking::kGreyBitPattern, "11") == 0); |
+ DCHECK(strcmp(Marking::kBlackBitPattern, "11") == 0); |
+ DCHECK(strcmp(Marking::kGreyBitPattern, "10") == 0); |
// Check for the color. |
if (first_bit == 0) { |
@@ -4205,8 +4205,8 @@ void MacroAssembler::JumpIfBlack(Register object, |
Register scratch0, |
Register scratch1, |
Label* on_black) { |
- DCHECK(strcmp(Marking::kBlackBitPattern, "10") == 0); |
- HasColor(object, scratch0, scratch1, on_black, 1, 0); // kBlackBitPattern. |
+ DCHECK(strcmp(Marking::kBlackBitPattern, "11") == 0); |
+ HasColor(object, scratch0, scratch1, on_black, 1, 1); // kBlackBitPattern. |
} |
@@ -4252,8 +4252,8 @@ void MacroAssembler::JumpIfWhite(Register value, Register bitmap_scratch, |
// These bit sequences are backwards. The first character in the string |
// represents the least significant bit. |
DCHECK(strcmp(Marking::kWhiteBitPattern, "00") == 0); |
- DCHECK(strcmp(Marking::kBlackBitPattern, "10") == 0); |
- DCHECK(strcmp(Marking::kGreyBitPattern, "11") == 0); |
+ DCHECK(strcmp(Marking::kBlackBitPattern, "11") == 0); |
+ DCHECK(strcmp(Marking::kGreyBitPattern, "10") == 0); |
GetMarkBits(value, bitmap_scratch, shift_scratch); |
Ldr(load_scratch, MemOperand(bitmap_scratch, MemoryChunk::kHeaderSize)); |