Index: src/compiler/arm64/code-generator-arm64.cc |
diff --git a/src/compiler/arm64/code-generator-arm64.cc b/src/compiler/arm64/code-generator-arm64.cc |
index 47dcd84bae17d64ee1a1fc66136e4467c4ff572c..e45c677619393662a606fe0ff31b5da7a75a793d 100644 |
--- a/src/compiler/arm64/code-generator-arm64.cc |
+++ b/src/compiler/arm64/code-generator-arm64.cc |
@@ -288,6 +288,9 @@ class OutOfLineRecordWrite final : public OutOfLineCode { |
__ CheckPageFlagClear(value_, scratch0_, |
MemoryChunk::kPointersToHereAreInterestingMask, |
exit()); |
+ RememberedSetAction const remembered_set_action = |
+ mode_ > RecordWriteMode::kValueIsMap ? EMIT_REMEMBERED_SET |
+ : OMIT_REMEMBERED_SET; |
SaveFPRegsMode const save_fp_mode = |
frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; |
if (!frame()->needs_frame()) { |
@@ -295,7 +298,7 @@ class OutOfLineRecordWrite final : public OutOfLineCode { |
__ Push(lr); |
} |
RecordWriteStub stub(isolate(), object_, scratch0_, scratch1_, |
- EMIT_REMEMBERED_SET, save_fp_mode); |
+ remembered_set_action, save_fp_mode); |
__ Add(scratch1_, object_, index_); |
__ CallStub(&stub); |
if (!frame()->needs_frame()) { |