[mono] Change bound delegates dependency of bound_method + delegate_type to use just delegate_type #83329
Closed
2 tasks done
Labels
Milestone
Description
Testcase
Description
At the moment, this is creating a wrapper which depends on both the delegate type and the bounded method to make a virtual call to delegate's bounded method which can not be generated at AOT time since the AOT compiler can not determine that a particular combination of delegate type and bound method will be needed at runtime.
Approach
Instead of making a virtual call, we should make a
calli
instruction using a pointer to the bounded method.In this way, AOT compiler could generate a wrapper depending just on the delegate type.
Tasks
calli
instruction for JIT instead ofcallvirt
The text was updated successfully, but these errors were encountered: