dotnow-interpreter icon indicating copy to clipboard operation
dotnow-interpreter copied to clipboard

It is not possible to create a CLR Method Binding for generic methods

Open scottyboy805 opened this issue 2 years ago • 0 comments

At the moment it is only possible to create interop method bindings for non-generic methods. Support should be added for generic methods as it will help to get around AOT issues where code was not generated like this:

[EXCEPTION] NotSupportedException: D:\Program Files\UnityEditors\2018.2.20f1\Editor\Data\il2cpp\libil2cpp\icalls\mscorlib\System.Runtime.CompilerServices\RuntimeHelpers.cpp(72) : Unsupported internal call for IL2CPP:RuntimeHelpers::GetObjectValue - "This icall is not supported by il2cpp."
>>>dotnow.Runtime.CIL.CILInterpreter.ExecuteInterpreted (dotnow.AppDomain domain, dotnow.Runtime.ExecutionEngine engine, dotnow.Runtime.ExecutionFrame& frame, dotnow.Runtime.CIL.CILOperation[]& instructions, dotnow.Reflection.CLRExceptionHandler[]& exceptionHandlers, DebugFlags debugFlags)
dotnow.Runtime.ExecutionEngine.Execute (dotnow.AppDomain domain, dotnow.Runtime.ExecutionFrame frame, dotnow.Runtime.CIL.CILOperation[] methodInstructions, dotnow.Reflection.CLRExceptionHandler[] exceptionHandlers, Int32 initialInstructionIndex, Boolean debuggerResume)
dotnow.Runtime.ExecutionMethod.ReflectionInvoke (System.Object obj, System.Object[] parameters)

scottyboy805 avatar Apr 28 '22 18:04 scottyboy805