Index: src/mips/assembler-mips-inl.h |
diff --git a/src/mips/assembler-mips-inl.h b/src/mips/assembler-mips-inl.h |
index 1cd9361e9a28a461e4122f852d8191ff353a8f66..1fdb3e97e5a18cd83f6548084c56bf28ceefabc9 100644 |
--- a/src/mips/assembler-mips-inl.h |
+++ b/src/mips/assembler-mips-inl.h |
@@ -126,10 +126,10 @@ void RelocInfo::apply(intptr_t delta, ICacheFlushMode icache_flush_mode) { |
Assembler::JumpLabelToJumpRegister(pc_); |
} |
} |
- 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)); |
} |
} |