Commit 052020e5 authored by michael_dawson's avatar michael_dawson Committed by Commit bot

PPC: Fix 'PPC: Serializer: serialize internal references via object visitor.'

Port 56d2ee03

Original commit message:

R=mbrandy@us.ibm.com

BUG=

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

Cr-Commit-Position: refs/heads/master@{#27428}
parent 96cfadd5
......@@ -486,8 +486,8 @@ void Assembler::deserialization_set_special_target_at(
void Assembler::deserialization_set_target_internal_reference_at(
Address pc, Address target) {
if (IsLis(instr_at(pc)) && IsOri(instr_at(pc + kInstrSize))) {
Address pc, Address target, RelocInfo::Mode mode) {
if (RelocInfo::IsInternalReferenceEncoded(mode)) {
Code* code = NULL;
set_target_address_at(pc, code, target, SKIP_ICACHE_FLUSH);
} else {
......
......@@ -631,7 +631,8 @@ class Assembler : public AssemblerBase {
// This sets the internal reference at the pc.
inline static void deserialization_set_target_internal_reference_at(
Address pc, Address target);
Address pc, Address target,
RelocInfo::Mode mode = RelocInfo::INTERNAL_REFERENCE);
// Size of an instruction.
static const int kInstrSize = sizeof(Instr);
......
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