PPC: Merge cellspace into old pointer space
authormichael_dawson <michael_dawson@ca.ibm.com>
Fri, 10 Apr 2015 20:58:40 +0000 (13:58 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 10 Apr 2015 21:02:24 +0000 (21:02 +0000)
Port 4e7163ce05f135918205c7855ae60a48e5d46cc5

R=mbrandy@us.ibm.com

BUG=

Review URL: https://codereview.chromium.org/1076263002

Cr-Commit-Position: refs/heads/master@{#27761}

src/ppc/code-stubs-ppc.cc

index 788db71811efd46fc1c5ab3308d4997f191ba753..f7c8e65a06a2de4298061a61ac1c74de49abfe0c 100644 (file)
@@ -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.