Index: src/x87/code-stubs-x87.cc |
diff --git a/src/x87/code-stubs-x87.cc b/src/x87/code-stubs-x87.cc |
index 4feddf042228d8cdf76d13f488f91fc5c2561f0d..1ee8484452be9e440306e3711368f12659291d97 100644 |
--- a/src/x87/code-stubs-x87.cc |
+++ b/src/x87/code-stubs-x87.cc |
@@ -3728,11 +3728,8 @@ void RecordWriteStub::GenerateIncremental(MacroAssembler* masm, Mode mode) { |
regs_.scratch0(), |
&dont_need_remembered_set); |
- __ CheckPageFlag(regs_.object(), |
- regs_.scratch0(), |
- 1 << MemoryChunk::SCAN_ON_SCAVENGE, |
- not_zero, |
- &dont_need_remembered_set); |
+ __ JumpIfInNewSpace(regs_.object(), regs_.scratch0(), |
+ &dont_need_remembered_set); |
// First notify the incremental marker if necessary, then update the |
// remembered set. |