Index: src/s390/macro-assembler-s390.cc |
diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc |
index 8b708de734cfa5e96104a6c71760f051fd81bb9e..05b74a02435143bf6524116d434c28d222b2709c 100644 |
--- a/src/s390/macro-assembler-s390.cc |
+++ b/src/s390/macro-assembler-s390.cc |
@@ -251,10 +251,7 @@ void MacroAssembler::StoreRoot(Register source, Heap::RootListIndex index, |
void MacroAssembler::InNewSpace(Register object, Register scratch, |
Condition cond, Label* branch) { |
DCHECK(cond == eq || cond == ne); |
- // TODO(joransiu): check if we can merge mov Operand into AndP. |
- const int mask = |
- (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); |
- CheckPageFlag(object, scratch, mask, cond, branch); |
+ CheckPageFlag(object, scratch, MemoryChunk::kIsInNewSpaceMask, cond, branch); |
} |
void MacroAssembler::RecordWriteField( |