Index: src/compiler/x87/code-generator-x87.cc |
diff --git a/src/compiler/x87/code-generator-x87.cc b/src/compiler/x87/code-generator-x87.cc |
index 22be83874630c27f9af06ccfa8cc6690a398dbb6..96eddd05751f51f1e9d259baeca769db69740645 100644 |
--- a/src/compiler/x87/code-generator-x87.cc |
+++ b/src/compiler/x87/code-generator-x87.cc |
@@ -249,10 +249,13 @@ class OutOfLineRecordWrite final : public OutOfLineCode { |
__ CheckPageFlag(value_, scratch0_, |
MemoryChunk::kPointersToHereAreInterestingMask, zero, |
exit()); |
+ RememberedSetAction const remembered_set_action = |
+ mode_ > RecordWriteMode::kValueIsMap ? EMIT_REMEMBERED_SET |
+ : OMIT_REMEMBERED_SET; |
SaveFPRegsMode const save_fp_mode = |
frame()->DidAllocateDoubleRegisters() ? kSaveFPRegs : kDontSaveFPRegs; |
RecordWriteStub stub(isolate(), object_, scratch0_, scratch1_, |
- EMIT_REMEMBERED_SET, save_fp_mode); |
+ remembered_set_action, save_fp_mode); |
__ lea(scratch1_, operand_); |
__ CallStub(&stub); |
} |