diff options
author | Sergey Andreenko <seandree@microsoft.com> | 2019-05-23 21:24:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-23 21:24:44 -0700 |
commit | d5d18896900561b7aaf38ba9501a8525a4b9caea (patch) | |
tree | 60f975b42a41b38562b2cb0324f2dcc923036ecf /src/vm/callhelpers.h | |
parent | 267f8299ac1fd97430284fa6d44e5e9c6ed26850 (diff) | |
download | coreclr-d5d18896900561b7aaf38ba9501a8525a4b9caea.tar.gz coreclr-d5d18896900561b7aaf38ba9501a8525a4b9caea.tar.bz2 coreclr-d5d18896900561b7aaf38ba9501a8525a4b9caea.zip |
Delete RETURNTYPE and change how we get ReturnKind for gccover. (#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.
Diffstat (limited to 'src/vm/callhelpers.h')
-rw-r--r-- | src/vm/callhelpers.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/vm/callhelpers.h b/src/vm/callhelpers.h index c30dc0bd2f..babc6932ed 100644 --- a/src/vm/callhelpers.h +++ b/src/vm/callhelpers.h @@ -362,10 +362,6 @@ public: #define MDCALLDEF_ARGSLOT(wrappedmethod, ext) \ FORCEINLINE void wrappedmethod##ext (const ARG_SLOT* pArguments, ARG_SLOT *pReturnValue, int cbReturnValue) \ { \ - WRAPPER_NO_CONTRACT; \ - { \ - GCX_FORBID(); /* arg array is not protected */ \ - } \ CallTargetWorker(pArguments, pReturnValue, cbReturnValue); \ /* Bigendian layout not support */ \ } @@ -373,11 +369,6 @@ public: #define MDCALLDEF_REFTYPE(wrappedmethod, permitvaluetypes, ext, ptrtype, reftype) \ FORCEINLINE reftype wrappedmethod##ext (const ARG_SLOT* pArguments) \ { \ - WRAPPER_NO_CONTRACT; \ - { \ - GCX_FORBID(); /* arg array is not protected */ \ - CONSISTENCY_CHECK(MetaSig::RETOBJ == m_pMD->ReturnsObject(true)); \ - } \ ARG_SLOT retval; \ CallTargetWorker(pArguments, &retval, sizeof(retval)); \ return ObjectTo##reftype(*(ptrtype *) \ |