Delete RETURNTYPE and change how we get ReturnKind for gccover. (dotnet/coreclr#24600)
authorSergey Andreenko <seandree@microsoft.com>
Fri, 24 May 2019 04:24:44 +0000 (21:24 -0700)
committerGitHub <noreply@github.com>
Fri, 24 May 2019 04:24:44 +0000 (21:24 -0700)
commit29793c6ee8a40a1e30b1bf9166185036cf308465
tree08cc87c52994384e4216e9a1ddcf26359c4e3001
parent193c64e6384f1a89344f91e11f5128d695b91ad5
Delete RETURNTYPE and change how we get ReturnKind for gccover. (dotnet/coreclr#24600)

* Move GetReturnKindFromMethodTable to method.hpp.

We would need this in other places in the next commits.

* Delete unnecessary checks from callhelpers.

* Do not check return types in CanDeduplicateCode.

GC info v.2 has this information and it is checked in another place.

* Change ComPlusMethodFrame to use the new function.

* Change gccover.cpp to use GetReturnKindFromMethodTable.

* Delete RETURNTYPE.

* Add check to ComPlusMethodFrame.

* Delete check from threadsuspend.

codeInfo->GetCodeManager()->GetReturnKind(gcInfoToken) must always return a valid kind nowdays (it could return an invalid lind only when GC Info v2 was not available).

* Rename functions/arguments.

* Add check for IsValidReturnKind.

* delete unused var.

Commit migrated from https://github.com/dotnet/coreclr/commit/d5d18896900561b7aaf38ba9501a8525a4b9caea
src/coreclr/src/inc/gcinfotypes.h
src/coreclr/src/vm/callhelpers.h
src/coreclr/src/vm/compile.cpp
src/coreclr/src/vm/frames.cpp
src/coreclr/src/vm/gccover.cpp
src/coreclr/src/vm/method.cpp
src/coreclr/src/vm/method.hpp
src/coreclr/src/vm/siginfo.hpp
src/coreclr/src/vm/threadsuspend.cpp