Optimize the creation of WeakPtrs for many object types.
Pull request: https://github.com/WebKit/WebKit/pull/21424
Committed 271701@main (0ea98bdecabc): <https://commits.webkit.org/271701@main> Reviewed commits have been landed. Closing PR #21424 and removing active labels.
<rdar://problem/119344910>