[NativeAOT] Unify common cases of Array.Copy with CoreCLR (#83351)
authorVladimir Sadov <vsadov@microsoft.com>
Tue, 14 Mar 2023 02:39:18 +0000 (19:39 -0700)
committerGitHub <noreply@github.com>
Tue, 14 Mar 2023 02:39:18 +0000 (19:39 -0700)
commit648d477858b5723059085de84966a2247cfdc0e7
treed9eeca53a29c471c887f600532b2ba47f97cbce2
parent2b185ac8c5c1302804a3336c62cb33782d9d4916
[NativeAOT] Unify common cases of Array.Copy with CoreCLR (#83351)

* Unify common cases of Array.Copy

* ContainsGCPointers

* removed EETypePtr.FastEquals

* AreSameType

* fix the build after rebase
15 files changed:
src/coreclr/System.Private.CoreLib/src/System/Array.CoreCLR.cs
src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.CoreCLR.cs
src/coreclr/nativeaot/Common/src/Internal/Runtime/MethodTable.cs
src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/MethodTable.Runtime.cs
src/coreclr/nativeaot/Runtime.Base/src/System/Runtime/RuntimeExports.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Array.NativeAot.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/EETypePtr.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Object.NativeAot.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.NativeAot.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/InteropServices/InteropExtensions.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Runtime/InteropServices/Marshal.NativeAot.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/System/ValueType.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/EETypeCreator.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeBuilder.cs
src/libraries/System.Private.CoreLib/src/System/Array.cs