Index: src/ppc/assembler-ppc-inl.h |
diff --git a/src/ppc/assembler-ppc-inl.h b/src/ppc/assembler-ppc-inl.h |
index ec8d61926f87c6ba46618d5f4c4be5a00052e656..86bb6db435b379335cc020586eeb582007c5d136 100644 |
--- a/src/ppc/assembler-ppc-inl.h |
+++ b/src/ppc/assembler-ppc-inl.h |
@@ -154,12 +154,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(); |