Delete .NET Native leftovers from type loader (part 2 of X) (#79073)
authorMichal Strehovský <MichalStrehovsky@users.noreply.github.com>
Thu, 1 Dec 2022 23:45:32 +0000 (08:45 +0900)
committerGitHub <noreply@github.com>
Thu, 1 Dec 2022 23:45:32 +0000 (08:45 +0900)
commit64ee6b9429d8259558b750a60ba38b27d56c4420
tree99cef009ebf202e53062e27fd28535b06760efb6
parent68d0e88e548cbc9b5ecc3633031c735cc98599ad
Delete .NET Native leftovers from type loader (part 2 of X) (#79073)

Main theme: things that deal with individual fields.

I was today years old when I learned we can't just always copy the GCDesc from the template type and sometimes need to construct it from a bitfield. The reason is multidimensional arrays, whose template is always `object[,]` and that GCDesc is only valid for reference-type elements and wrong for everything else.
12 files changed:
src/coreclr/nativeaot/System.Private.CoreLib/src/Internal/Runtime/Augments/RuntimeAugments.cs
src/coreclr/nativeaot/System.Private.CoreLib/src/Internal/Runtime/Augments/TypeLoaderCallbacks.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/EETypeCreator.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/NativeLayoutFieldAlgorithm.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/SerializedDebugData.cs [deleted file]
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeBuilder.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeBuilderState.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeLoaderEnvironment.FieldAccess.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/Runtime/TypeLoader/TypeLoaderEnvironment.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/TypeSystem/DefType.Runtime.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/Internal/TypeSystem/TypeDesc.Runtime.cs
src/coreclr/nativeaot/System.Private.TypeLoader/src/System.Private.TypeLoader.csproj