CallFrame::returnPC() was relying on ReturnAddressPtr, which in turn expected to be able to untag any arbitrary return address read from a stack frame. This will not always be possible when JITCage is enabled. Also, CallFrame::returnPC() is only used for debugging purposes. So, this patch will simplify its implementation and rename it to CallFrame::returnPCForInspection() to make it clear that it should only be used for debugging and analysis purposes. We will also remove some related unused code.
<rdar://problem/103457282>
Pull request: https://github.com/WebKit/WebKit/pull/7775
Committed 258023@main (689b0ba375c8): <https://commits.webkit.org/258023@main> Reviewed commits have been landed. Closing PR #7775 and removing active labels.