Index: src/mips64/assembler-mips64-inl.h |
diff --git a/src/mips64/assembler-mips64-inl.h b/src/mips64/assembler-mips64-inl.h |
index 76dd801af591b259d3de1b21601401806dcd687e..dede337e2a053d525958398e30cca16b0f1798a7 100644 |
--- a/src/mips64/assembler-mips64-inl.h |
+++ b/src/mips64/assembler-mips64-inl.h |
@@ -118,10 +118,10 @@ int FPURegister::ToAllocationIndex(FPURegister reg) { |
// RelocInfo. |
void RelocInfo::apply(intptr_t delta, ICacheFlushMode icache_flush_mode) { |
- if (IsInternalReference(rmode_)) { |
+ if (IsInternalReference(rmode_) || IsInternalReferenceEncoded(rmode_)) { |
// Absolute code pointer inside code object moves with the code object. |
byte* p = reinterpret_cast<byte*>(pc_); |
- int count = Assembler::RelocateInternalReference(p, delta); |
+ int count = Assembler::RelocateInternalReference(rmode_, p, delta); |
CpuFeatures::FlushICache(p, count * sizeof(uint32_t)); |
} |
} |