Call RecordWriteIntoCode when storing the target object in the reloc info on ARM and MIPS.
BUG=chromium:561449 LOG=n Review URL: https://codereview.chromium.org/1654263004 Cr-Commit-Position: refs/heads/master@{#33687}
This commit is contained in:
parent
ef93854ab9
commit
44ec23ac5f
@ -138,8 +138,8 @@ void RelocInfo::set_target_object(Object* target,
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -731,8 +731,8 @@ void RelocInfo::set_target_object(Object* target,
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -214,8 +214,8 @@ void RelocInfo::set_target_object(Object* target,
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -213,8 +213,8 @@ void RelocInfo::set_target_object(Object* target,
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user