Index: src/ppc/assembler-ppc-inl.h |
diff --git a/src/ppc/assembler-ppc-inl.h b/src/ppc/assembler-ppc-inl.h |
index 6779ee3d88b328b5dcde250ad5edc0b399df3896..3665aff5660ad04a53e89619586924d16838e263 100644 |
--- a/src/ppc/assembler-ppc-inl.h |
+++ b/src/ppc/assembler-ppc-inl.h |
@@ -51,14 +51,11 @@ bool CpuFeatures::SupportsCrankshaft() { return true; } |
void RelocInfo::apply(intptr_t delta, ICacheFlushMode icache_flush_mode) { |
-#if ABI_USES_FUNCTION_DESCRIPTORS || V8_OOL_CONSTANT_POOL |
- if (RelocInfo::IsInternalReference(rmode_)) { |
+ if (IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)) { |
// absolute code pointer inside code object moves with the code object. |
- Assembler::RelocateInternalReference(pc_, delta, 0, icache_flush_mode); |
+ Assembler::RelocateInternalReference(pc_, delta, 0, rmode_, |
+ icache_flush_mode); |
} |
-#endif |
- // We do not use pc relative addressing on PPC, so there is |
- // nothing else to do. |
} |