Index: src/compiler/arm/code-generator-arm.cc |
diff --git a/src/compiler/arm/code-generator-arm.cc b/src/compiler/arm/code-generator-arm.cc |
index ac2c71126af47419d042656c65924d9c6332185c..bdf4c471656c5c0c03fb0bec192f8f662a9d9856 100644 |
--- a/src/compiler/arm/code-generator-arm.cc |
+++ b/src/compiler/arm/code-generator-arm.cc |
@@ -231,6 +231,9 @@ class OutOfLineRecordWrite final : public OutOfLineCode { |
__ CheckPageFlag(value_, scratch0_, |
MemoryChunk::kPointersToHereAreInterestingMask, eq, |
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()) { |
@@ -238,7 +241,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); |
if (index_.is(no_reg)) { |
__ add(scratch1_, object_, Operand(index_immediate_)); |
} else { |