Index: src/x64/code-stubs-x64.cc |
diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc |
index cce6f2f1ce014ab579a9a3fadb797ae93db22e40..4c06bd0962c7075b9299fe8582b5c920cbe79c48 100644 |
--- a/src/x64/code-stubs-x64.cc |
+++ b/src/x64/code-stubs-x64.cc |
@@ -3954,11 +3954,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. |