summaryrefslogtreecommitdiff
path: root/src/vm/typehandle.cpp
diff options
context:
space:
mode:
authorCarol Eidt <carol.eidt@microsoft.com>2017-08-02 15:10:50 -0700
committerCarol Eidt <carol.eidt@microsoft.com>2017-08-30 10:10:25 -0700
commit84100a665cdd4f412476035a1e6fb148553142cf (patch)
tree8f168096cdefd2fb7bde0e29b4df88df1ba922a3 /src/vm/typehandle.cpp
parent3f95fb8466a125e8abd5e80e9dfc953fe09d85ab (diff)
downloadcoreclr-84100a665cdd4f412476035a1e6fb148553142cf.tar.gz
coreclr-84100a665cdd4f412476035a1e6fb148553142cf.tar.bz2
coreclr-84100a665cdd4f412476035a1e6fb148553142cf.zip
Support checking for HFA types in altjit
When using an HFA altjit with a non-HFA coreclr, `FEATURE_HFA` will not be defined in the runtime. In this case, instead of caching the information on the `MethodTable`, it will be recomputed for every call to query for an HFA type or to get the base element type. In order to do this, the functionality must be available on a built class, so implement these methods on `EEClass` instead of `MethodTableBuilder` (which was already using `GetHalfBakedClass()` to access some of the `EEClass` functionality). Fix #13092
Diffstat (limited to 'src/vm/typehandle.cpp')
-rw-r--r--src/vm/typehandle.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/vm/typehandle.cpp b/src/vm/typehandle.cpp
index 61a655faec..9e8afba82f 100644
--- a/src/vm/typehandle.cpp
+++ b/src/vm/typehandle.cpp
@@ -494,7 +494,6 @@ DWORD TypeHandle::IsTransparentProxy() const
return FALSE;
}
-#ifdef FEATURE_HFA
bool TypeHandle::IsHFA() const
{
WRAPPER_NO_CONTRACT;
@@ -520,7 +519,7 @@ CorElementType TypeHandle::GetHFAType() const
return ELEMENT_TYPE_END;
}
-#endif // FEATURE_HFA
+
#ifdef FEATURE_64BIT_ALIGNMENT
bool TypeHandle::RequiresAlign8() const