Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index e672b9dec8d63c0c4b8ad9b8a66589d961d67dd5..0acb4dea38716658278bbf5ef9b63a894380d971 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -4091,8 +4091,7 @@ void RecordWriteStub::GenerateIncremental(MacroAssembler* masm, Mode mode) { |
__ Ldr(val, MemOperand(regs_.address())); |
__ JumpIfNotInNewSpace(val, &dont_need_remembered_set); |
- __ CheckPageFlagSet(regs_.object(), val, 1 << MemoryChunk::SCAN_ON_SCAVENGE, |
- &dont_need_remembered_set); |
+ __ JumpIfInNewSpace(regs_.object(), &dont_need_remembered_set); |
// First notify the incremental marker if necessary, then update the |
// remembered set. |