Index: src/mips64/assembler-mips64-inl.h |
diff --git a/src/mips64/assembler-mips64-inl.h b/src/mips64/assembler-mips64-inl.h |
index f1e3e587efb3b985d38f39c451b38883dac5527a..ae427d6bf313ac0c7cc4ebfcff00708767fa4524 100644 |
--- a/src/mips64/assembler-mips64-inl.h |
+++ b/src/mips64/assembler-mips64-inl.h |
@@ -223,12 +223,24 @@ void RelocInfo::set_target_object(Object* target, |
} |
-Address RelocInfo::target_reference() { |
+Address RelocInfo::target_external_reference() { |
DCHECK(rmode_ == EXTERNAL_REFERENCE); |
return Assembler::target_address_at(pc_, host_); |
} |
+Address RelocInfo::target_internal_reference() { |
+ DCHECK(rmode_ == INTERNAL_REFERENCE); |
+ return Memory::Address_at(pc_); |
+} |
+ |
+ |
+void RelocInfo::set_target_internal_reference(Address target) { |
+ DCHECK(rmode_ == INTERNAL_REFERENCE); |
+ Memory::Address_at(pc_) = target; |
+} |
+ |
+ |
Address RelocInfo::target_runtime_entry(Assembler* origin) { |
DCHECK(IsRuntimeEntry(rmode_)); |
return target_address(); |