Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 874fbae28b8e085058df95919e8e5bce9f33b234..523ec7c203c4619a38c8f8fe5a55d8c971af44ea 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -253,9 +253,8 @@ void MacroAssembler::InNewSpace(Register object, |
Condition cc, |
Label* branch, |
Label::Distance distance) { |
- const int mask = |
- (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); |
- CheckPageFlag(object, scratch, mask, cc, branch, distance); |
+ CheckPageFlag(object, scratch, MemoryChunk::kIsInNewSpaceMask, cc, branch, |
+ distance); |
} |