Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 83c7ce891758b9ca68091d18dad3dd3404dc70da..3b2e67ea71dfb264c23ef8be6375141835f6def9 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -173,9 +173,8 @@ void MacroAssembler::PopCallerSaved(SaveFPRegsMode fp_mode, Register exclusion1, |
void MacroAssembler::InNewSpace(Register object, Register scratch, Condition cc, |
Label* condition_met, |
Label::Distance distance) { |
- const int mask = |
- (1 << MemoryChunk::IN_FROM_SPACE) | (1 << MemoryChunk::IN_TO_SPACE); |
- CheckPageFlag(object, scratch, mask, cc, condition_met, distance); |
+ CheckPageFlag(object, scratch, MemoryChunk::kIsInNewSpaceMask, cc, |
+ condition_met, distance); |
} |