Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2324,16 +2324,15 @@ private void ceeInfoGetCallInfo(
{
if (pResult->exactContextNeedsRuntimeLookup)
{
throw new RequiresRuntimeJitException("EmbedGenericHandle currently doesn't support propagation of RUNTIME_LOOKUP or pConstrainedResolvedToken from ComputeRuntimeLookupForSharedGenericToken");
// ComputeRuntimeLookupForSharedGenericToken(DictionaryEntryKind.DispatchStubAddrSlot, ref pResolvedToken, pConstrainedResolvedToken, originalMethod, ref pResult->codePointerOrStubLookup);
// useInstantiatingStub = false;
pResult->kind = CORINFO_CALL_KIND.CORINFO_CALL_CODE_POINTER;
ComputeRuntimeLookupForSharedGenericToken(DictionaryEntryKind.ConstrainedMethodEntrySlot, ref pResolvedToken, pConstrainedResolvedToken, originalMethod, HandleToObject(callerHandle), ref pResult->codePointerOrStubLookup);
useInstantiatingStub = true;
Comment thread
jkoritzinsky marked this conversation as resolved.
}
else
{
throw new RequiresRuntimeJitException("CanInline currently doesn't support propagation of constrained type so that we cannot reliably tell whether a SVM call can be inlined");
// Even if we decided to support SVMs unresolved at compile time, we'd still need to force the use of instantiating stub
// as we can't tell in advance whether the method will be runtime-resolved to a canonical representation.
// useInstantiatingStub = true;
}
}
}
Expand Down
Loading