Index: src/x64/assembler-x64-inl.h |
diff --git a/src/x64/assembler-x64-inl.h b/src/x64/assembler-x64-inl.h |
index f3940e8255e21349c7b90cbddcf1b23b3aa1d649..d022340c10a636ac66b2816690c4d24dc718512e 100644 |
--- a/src/x64/assembler-x64-inl.h |
+++ b/src/x64/assembler-x64-inl.h |
@@ -195,6 +195,12 @@ void Assembler::set_target_address_at(Address pc, Address target) { |
CPU::FlushICache(pc, sizeof(int32_t)); |
} |
+ |
+Address Assembler::target_address_from_return_address(Address pc) { |
+ return pc - kCallTargetAddressOffset; |
+} |
+ |
+ |
Handle<Object> Assembler::code_target_object_handle_at(Address pc) { |
return code_targets_[Memory::int32_at(pc)]; |
} |