18 references to ObjectToHandle
ILCompiler.ReadyToRun (18)
JitInterface\CorInfoImpl.ReadyToRun.cs (3)
522return ObjectToHandle(asyncResumptionStub); 2392pResult->hMethod = ObjectToHandle(methodToCall); 2816pResult.compileTimeHandle = (CORINFO_GENERIC_STRUCT_*)ObjectToHandle(md);
src\runtime\src\coreclr\tools\Common\JitInterface\CorInfoImpl.cs (15)
797methodInfo->ftn = ObjectToHandle(method); 1022return (CORINFO_CONTEXT_STRUCT*)(((nuint)ObjectToHandle(method)) | (nuint)CorInfoContextFlags.CORINFO_CONTEXTFLAGS_METHOD); 1511info->resolvedTokenDevirtualizedUnboxedMethod.hMethod = ObjectToHandle(nonUnboxingImpl); 1601info->devirtualizedMethod = ObjectToHandle(impl); 1638result.hMethod = jitInterface.ObjectToHandle(method); 1662return ObjectToHandle(method); 1986pResolvedToken.hMethod = ObjectToHandle(method); 3588pAsyncInfoOut.captureExecutionContextMethHnd = ObjectToHandle(asyncHelpers.GetKnownMethod("CaptureExecutionContext"u8, null)); 3589pAsyncInfoOut.captureContinuationContextMethHnd = ObjectToHandle(asyncHelpers.GetKnownMethod("CaptureContinuationContext"u8, null)); 3590pAsyncInfoOut.captureContextsMethHnd = ObjectToHandle(asyncHelpers.GetKnownMethod("CaptureContexts"u8, null)); 3591pAsyncInfoOut.restoreContextsMethHnd = ObjectToHandle(asyncHelpers.GetKnownMethod("RestoreContexts"u8, null)); 3592pAsyncInfoOut.restoreContextsOnSuspensionMethHnd = ObjectToHandle(asyncHelpers.GetKnownMethod("RestoreContextsOnSuspension"u8, null)); 3593pAsyncInfoOut.finishSuspensionNoContinuationContextMethHnd = ObjectToHandle(asyncHelpers.GetKnownMethod("FinishSuspensionNoContinuationContext"u8, null)); 3594pAsyncInfoOut.finishSuspensionWithContinuationContextMethHnd = ObjectToHandle(asyncHelpers.GetKnownMethod("FinishSuspensionWithContinuationContext"u8, null)); 3674return ObjectToHandle(targetMethod);