Index: src/arm/assembler-arm-inl.h |
diff --git a/src/arm/assembler-arm-inl.h b/src/arm/assembler-arm-inl.h |
index 876cd3d1bd04ce0aa99308603c1d81eb999a9a99..0be6f921e40684ccb584c05c76bc3a28bfb5a7c1 100644 |
--- a/src/arm/assembler-arm-inl.h |
+++ b/src/arm/assembler-arm-inl.h |
@@ -184,12 +184,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(); |