Index: src/mips/macro-assembler-mips.cc |
diff --git a/src/mips/macro-assembler-mips.cc b/src/mips/macro-assembler-mips.cc |
index 6f9f8d0c65f138ee952502e59a10a07b1065fc05..243b8065d7ef3c936ab4fb1cbd1fe936050dcb02 100644 |
--- a/src/mips/macro-assembler-mips.cc |
+++ b/src/mips/macro-assembler-mips.cc |
@@ -159,9 +159,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); |
} |