Mark GetTypeFromHandle as intrinsic (dotnet/coreclr#27306)
authorJan Vorlicek <janvorli@microsoft.com>
Sun, 20 Oct 2019 02:10:15 +0000 (04:10 +0200)
committerJan Kotas <jkotas@microsoft.com>
Sun, 20 Oct 2019 02:10:15 +0000 (19:10 -0700)
commita60e2fc69e1228f2525501870756aa99f1019daf
tree7a298a3824baeef2f8d142d500cb58187ed0a4e4
parentfb1b02cfb79ff047f4d75563709ecd48b1028c22
Mark GetTypeFromHandle as intrinsic (dotnet/coreclr#27306)

This change marks GetTypeFromHandle as intrinsic and add related
missing case CorInfoHelpFunc.CORINFO_HELP_TYPEHANDLE_TO_RUNTIMETYPE_MAYBENULL
to GetHelperFtnUncached.

This enables crossgen2 to eliminate call to GetTypeFromHandle.

Commit migrated from https://github.com/dotnet/coreclr/commit/9db8990bca7e0f44f60494d2608342a930d484ca
src/coreclr/src/System.Private.CoreLib/src/System/Type.CoreCLR.cs
src/coreclr/src/tools/crossgen2/ILCompiler.ReadyToRun/JitInterface/CorInfoImpl.ReadyToRun.cs