Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index 788db71811efd46fc1c5ab3308d4997f191ba753..f7c8e65a06a2de4298061a61ac1c74de49abfe0c 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -1404,6 +1404,11 @@ void InstanceofStub::Generate(MacroAssembler* masm) { |
// Get the map location in r8 and patch it. |
__ GetRelocatedValue(inline_site, offset, scratch); |
__ StoreP(map, FieldMemOperand(offset, Cell::kValueOffset), r0); |
+ |
+ __ mr(r10, map); |
+ __ RecordWriteField(offset, Cell::kValueOffset, r10, function, |
+ kLRHasNotBeenSaved, kDontSaveFPRegs, |
+ OMIT_REMEMBERED_SET, OMIT_SMI_CHECK); |
} |
// Register mapping: r6 is object map and r7 is function prototype. |