Adding Support for FieldDescSlot generic dictionary entries for R2R generic code...
authorFadi Hanna <fadim@microsoft.com>
Thu, 4 Aug 2016 01:00:49 +0000 (18:00 -0700)
committerGitHub <noreply@github.com>
Thu, 4 Aug 2016 01:00:49 +0000 (18:00 -0700)
commit98b7da69fb78d0b60a13e6f42e52fac6039d4cae
tree45866c9c3c9610d8a3faaf2e9fb4be5c88f01eb6
parentad14588a5e5d090c11e5436857827404ce6c61c0
Adding Support for FieldDescSlot generic dictionary entries for R2R generic code. (dotnet/coreclr#6200)

This enables generic code with ldtoken instructions for fields on generic types to be compiled into R2R.

This change makes newer versions of the runtime compatible with older version R2R images,
but not vice-versa. Therefore, the major version is increased to 2 with this change.

This change adds more encodings to a R2R image without changing the format of any previously encoded
entity, and is backwards compatible.

Commit migrated from https://github.com/dotnet/coreclr/commit/693fff99049bc7d63459b2c444237ca532036b47
17 files changed:
src/coreclr/src/inc/corcompile.h
src/coreclr/src/inc/readytorun.h
src/coreclr/src/vm/codeman.cpp
src/coreclr/src/vm/compile.cpp
src/coreclr/src/vm/compile.h
src/coreclr/src/vm/genericdict.cpp
src/coreclr/src/vm/jitinterface.cpp
src/coreclr/src/vm/zapsig.cpp
src/coreclr/src/vm/zapsig.h
src/coreclr/src/zap/zapimport.cpp
src/coreclr/src/zap/zapimport.h
src/coreclr/tests/src/readytorun/fieldgetter.il [new file with mode: 0644]
src/coreclr/tests/src/readytorun/fieldgetter.ilproj [new file with mode: 0644]
src/coreclr/tests/src/readytorun/main.cs
src/coreclr/tests/src/readytorun/mainv1.csproj
src/coreclr/tests/src/readytorun/mainv2.csproj
src/coreclr/tests/src/readytorun/test.cs