From 32b484efc40e7a3a9f9d0b392605e34f4eb747bf Mon Sep 17 00:00:00 2001
From: mbrandy <mbrandy@us.ibm.com>
Date: Wed, 3 Feb 2016 12:36:48 -0800
Subject: [PATCH] PPC: Call RecordWriteIntoCode when storing the target object
 in the reloc info.

Port 44ec23ac5fa028099742f3070b7ad86d0d1274c0

R=hpayer@chromium.org, joransiu@ca.ibm.com, jyan@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=chromium:561449
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#33710}
---
 src/ppc/assembler-ppc-inl.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/ppc/assembler-ppc-inl.h b/src/ppc/assembler-ppc-inl.h
index e755ccbad0..e5b577be80 100644
--- a/src/ppc/assembler-ppc-inl.h
+++ b/src/ppc/assembler-ppc-inl.h
@@ -202,8 +202,8 @@ void RelocInfo::set_target_object(Object* target,
                                    icache_flush_mode);
   if (write_barrier_mode == UPDATE_WRITE_BARRIER && host() != NULL &&
       target->IsHeapObject()) {
-    host()->GetHeap()->incremental_marking()->RecordWrite(
-        host(), &Memory::Object_at(pc_), HeapObject::cast(target));
+    host()->GetHeap()->incremental_marking()->RecordWriteIntoCode(
+        host(), this, HeapObject::cast(target));
   }
 }