Index: src/mips64/macro-assembler-mips64.cc |
diff --git a/src/mips64/macro-assembler-mips64.cc b/src/mips64/macro-assembler-mips64.cc |
index 1f5590dab2f87dcdf5adb1565b28aa9afda44eb2..710ab093ca71ea812bfef72f6f6bac04d74e84ef 100644 |
--- a/src/mips64/macro-assembler-mips64.cc |
+++ b/src/mips64/macro-assembler-mips64.cc |
@@ -161,9 +161,9 @@ void MacroAssembler::InNewSpace(Register object, |
Condition cc, |
Label* branch) { |
DCHECK(cc == eq || cc == ne); |
- And(scratch, object, Operand(ExternalReference::new_space_mask(isolate()))); |
- Branch(branch, cc, scratch, |
- Operand(ExternalReference::new_space_start(isolate()))); |
+ const int mask = |
+ 1 << MemoryChunk::IN_FROM_SPACE | 1 << MemoryChunk::IN_TO_SPACE; |
+ CheckPageFlag(object, scratch, mask, cc, branch); |
} |