runtime
runtime copied to clipboard
Support GVM helper lookup on CoreRT
GVM lookups on CoreRT are performed using the following steps:
- Load 'thisPtr' on stack
- Load runtime method handle of target method on stack
- Call helper function to resolve the GVM target (result could be a fat function pointer)
- Load arguments for the GVM call (possibly including a hidden instantiation argument)
- Calli GVM target returned from helper in step 3
Here is a working prototype that doesn't yet handle the fat function pointer case, but works with the rest of the CoreRT runtime: gvm_jit
Fixed dotnet/coreclr#9522