[jit] Return the compiled method and an unbox trampoline from ldvirtftn when calling ldvirtftn on a valuetype method. (#19809)
* [jit] Return the compiled method and an unbox trampoline from ldvirtftn when calling ldvirtftn on a valuetype method.
Fixes https://github.com/dotnet/runtime/issues/34379.
* [runtime] Add some caching to mono_aot_get_unbox_trampoline (). Register unwind info for trampolines.
* Add a 'method' field to MonoTrampInfo to be used by unbox trampolines.
* Refactor delegate initialization code.
Also handle unbox trampolines during the addr->method lookup.
* Merge mono_delegate_ctor () and mono_delegate_ctor_with_method ().
* Move the actual logic to mini_init_delegate ().
* Remove callbacks.create_jump_trampoline, its not used any more.
* Fix the build.
* Remove an interpreter workaround.
* Avoid leaking the amodule->unbox_tramp_per_method array.
12 files changed: