Index: src/mips/assembler-mips-inl.h |
diff --git a/src/mips/assembler-mips-inl.h b/src/mips/assembler-mips-inl.h |
index 522bc78687aec13e335307c57faeac932aa0d587..3e726a754584432d4fce84452ee1a93101d51d7b 100644 |
--- a/src/mips/assembler-mips-inl.h |
+++ b/src/mips/assembler-mips-inl.h |
@@ -156,6 +156,11 @@ void RelocInfo::set_target_address(Address target, WriteBarrierMode mode) { |
} |
+Address Assembler::target_address_from_return_address(Address pc) { |
+ return pc - kCallTargetAddressOffset; |
+} |
+ |
+ |
Object* RelocInfo::target_object() { |
ASSERT(IsCodeTarget(rmode_) || rmode_ == EMBEDDED_OBJECT); |
return reinterpret_cast<Object*>(Assembler::target_address_at(pc_)); |