Index: src/ia32/assembler-ia32-inl.h |
diff --git a/src/ia32/assembler-ia32-inl.h b/src/ia32/assembler-ia32-inl.h |
index c7ec6d9918c2d371fe9c5cec43e2c8a0522401be..521ab4fab4e9f367c91496ff75fff4129b2299d4 100644 |
--- a/src/ia32/assembler-ia32-inl.h |
+++ b/src/ia32/assembler-ia32-inl.h |
@@ -154,12 +154,24 @@ void RelocInfo::set_target_object(Object* target, |
} |
-Address RelocInfo::target_reference() { |
+Address RelocInfo::target_external_reference() { |
DCHECK(rmode_ == RelocInfo::EXTERNAL_REFERENCE); |
return Memory::Address_at(pc_); |
} |
+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 reinterpret_cast<Address>(*reinterpret_cast<int32_t*>(pc_)); |