Commit 476cd0f0 authored by Junliang Yan's avatar Junliang Yan Committed by Commit Bot

PPC: [turbofan] Change way OFF_HEAP_TARGET reloc info is omitted

Port 0f5a0719

Original Commit Message:

    This CL reverts commit 38bec2ea and
    implements the same functionality via Assembler::RecordRelocInfo.

R=sigurds@chromium.org, joransiu@ca.ibm.com, michael_dawson@ca.ibm.com
BUG=
LOG=N

Change-Id: I5a6d65bb2cc7cdaf1b982b3fb05cbb01b2099db2
Reviewed-on: https://chromium-review.googlesource.com/1110154Reviewed-by: 's avatarJoran Siu <joransiu@ca.ibm.com>
Commit-Queue: Junliang Yan <jyan@ca.ibm.com>
Cr-Commit-Position: refs/heads/master@{#53948}
parent 51ded9a7
......@@ -1453,10 +1453,10 @@ class Assembler : public AssemblerBase {
void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0);
ConstantPoolEntry::Access ConstantPoolAddEntry(RelocInfo::Mode rmode,
intptr_t value) {
bool sharing_ok =
RelocInfo::IsNone(rmode) || (!options().record_reloc_info_for_exrefs &&
RelocInfo::IsShareableRelocMode(rmode) &&
!is_constant_pool_entry_sharing_blocked());
bool sharing_ok = RelocInfo::IsNone(rmode) ||
(!options().record_reloc_info_for_serialization &&
RelocInfo::IsShareableRelocMode(rmode) &&
!is_constant_pool_entry_sharing_blocked());
return constant_pool_builder_.AddEntry(pc_offset(), value, sharing_ok);
}
ConstantPoolEntry::Access ConstantPoolAddEntry(Double value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment