Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index 64c71cfaee9afca8ef3d87d44fcb0b2c7c637413..e8f90c6aca5c39c2f7983a5c17be787e600886fd 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -366,12 +366,24 @@ Handle<Object> RelocInfo::target_object_handle(Assembler* origin) { |
} |
-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; |
+} |
+ |
+ |
void RelocInfo::set_target_object(Object* target, |
WriteBarrierMode write_barrier_mode, |
ICacheFlushMode icache_flush_mode) { |