PPC: fix constant pool entry sharing issue
R=joransiu@ca.ibm.com Change-Id: I80d67bdceacc9829855dc62ddd599d88a055c3a8 Reviewed-on: https://chromium-review.googlesource.com/1108537 Reviewed-by: Joran Siu <joransiu@ca.ibm.com> Commit-Queue: Junliang Yan <jyan@ca.ibm.com> Cr-Commit-Position: refs/heads/master@{#53897}
This commit is contained in:
parent
f6f0346463
commit
9dcc665cb1
@ -1455,9 +1455,9 @@ class Assembler : public AssemblerBase {
|
||||
void RecordRelocInfo(RelocInfo::Mode rmode, intptr_t data = 0);
|
||||
ConstantPoolEntry::Access ConstantPoolAddEntry(RelocInfo::Mode rmode,
|
||||
intptr_t value) {
|
||||
// TODO(ppc): does this condition depend on serialization somehow?
|
||||
bool sharing_ok =
|
||||
RelocInfo::IsNone(rmode) || (RelocInfo::IsShareableRelocMode(rmode) &&
|
||||
RelocInfo::IsNone(rmode) || (!options().record_reloc_info_for_exrefs &&
|
||||
RelocInfo::IsShareableRelocMode(rmode) &&
|
||||
!is_constant_pool_entry_sharing_blocked());
|
||||
return constant_pool_builder_.AddEntry(pc_offset(), value, sharing_ok);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user