Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index f31a826c7692f85720cb14fe54f69a7110eaba8f..25ae9937c5ac4f4270909b5a4950f889ae795afd 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -4047,11 +4047,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. |