[NativeAOT][8.0] Make casting logic closer to CoreCLR (#90234)
authorVladimir Sadov <vsadov@microsoft.com>
Wed, 9 Aug 2023 21:28:50 +0000 (14:28 -0700)
committerGitHub <noreply@github.com>
Wed, 9 Aug 2023 21:28:50 +0000 (14:28 -0700)
commit41bc9351e2fa6ab70dc8750fe4c765d92ffcb846
tree76eb065080c17d809005ba18aad25eb0bc5954b3
parent9a5fa7445c47e65e1cd454a5255b671ed81b3ae4
[NativeAOT][8.0] Make casting logic closer to CoreCLR (#90234)

* Refactored AssignmentVariation

* refactored similar to coreclr

* fix build

* simpler selection of runtime helpers for casts

* add a codegen test
src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/CastHelpers.cs
src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/RuntimeExports.cs
src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/TypeCast.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/RuntimeImports.cs
src/coreclr/tools/Common/Internal/Runtime/ReadyToRunConstants.cs
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/JitHelper.cs
src/coreclr/tools/aot/ILCompiler.RyuJit/JitInterface/CorInfoImpl.RyuJit.cs
src/tests/baseservices/typeequivalence/impl/Impls.cs
src/tests/baseservices/typeequivalence/simple/Simple.cs