Index: src/arm64/macro-assembler-arm64.cc |
diff --git a/src/arm64/macro-assembler-arm64.cc b/src/arm64/macro-assembler-arm64.cc |
index f674dd53e785e0d34db3f7f7c9cba8fda9f607ef..3480cd4a38f4521b88c416f9c9f1022a9c9d25a2 100644 |
--- a/src/arm64/macro-assembler-arm64.cc |
+++ b/src/arm64/macro-assembler-arm64.cc |
@@ -1571,9 +1571,8 @@ void MacroAssembler::InNewSpace(Register object, |
Label* branch) { |
DCHECK(cond == eq || cond == ne); |
UseScratchRegisterScope temps(this); |
- const int mask = |
- (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); |
- CheckPageFlag(object, temps.AcquireSameSizeAs(object), mask, cond, branch); |
+ CheckPageFlag(object, temps.AcquireSameSizeAs(object), |
+ MemoryChunk::kIsInNewSpaceMask, cond, branch); |
} |