Index: src/ppc/assembler-ppc-inl.h |
diff --git a/src/ppc/assembler-ppc-inl.h b/src/ppc/assembler-ppc-inl.h |
index 6877c985f06c82f8caf0345a77c57c2861df1b09..d95c7ec5968a5e8fec471bdabed8f6dcf84d01d4 100644 |
--- a/src/ppc/assembler-ppc-inl.h |
+++ b/src/ppc/assembler-ppc-inl.h |
@@ -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 { |