diff options
author | danmosemsft <danmose@microsoft.com> | 2017-02-14 21:07:49 -0800 |
---|---|---|
committer | danmosemsft <danmose@microsoft.com> | 2017-02-14 21:24:05 -0800 |
commit | 16eb7551d9f5ea8ec593dc86b789df4db2198a4b (patch) | |
tree | efec4968d631de26b785b962770e50c5874a83e8 /src/vm/jithelpers.cpp | |
parent | 1c1cc23cddad0eb765752d774a48dc686ae1d61f (diff) | |
download | coreclr-16eb7551d9f5ea8ec593dc86b789df4db2198a4b.tar.gz coreclr-16eb7551d9f5ea8ec593dc86b789df4db2198a4b.tar.bz2 coreclr-16eb7551d9f5ea8ec593dc86b789df4db2198a4b.zip |
Remove never defined FEATURE_MIXEDMODE
Diffstat (limited to 'src/vm/jithelpers.cpp')
-rw-r--r-- | src/vm/jithelpers.cpp | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/src/vm/jithelpers.cpp b/src/vm/jithelpers.cpp index d132741b0d..b4dc4c1382 100644 --- a/src/vm/jithelpers.cpp +++ b/src/vm/jithelpers.cpp @@ -1295,41 +1295,6 @@ HCIMPLEND // //======================================================================== -#ifdef FEATURE_MIXEDMODE -HCIMPL1(void*, JIT_GetStaticFieldAddr_Tls, FieldDesc *pFD) -{ - CONTRACTL { - FCALL_CHECK; - PRECONDITION(CheckPointer(pFD)); - PRECONDITION(pFD->IsStatic()); - PRECONDITION(pFD->IsRVA() && pFD->GetModule()->IsRvaFieldTls(pFD->GetOffset())); - } CONTRACTL_END; - - void *addr = NULL; - - HELPER_METHOD_FRAME_BEGIN_RET_0(); - - Module* pModule = pFD->GetModule(); - - // Get the ThreadLocalStoragePointer in the TEB. - LPVOID pTlsPtr = ClrTeb::GetLegacyThreadLocalStoragePointer(); - - // pTlsPtr is pointing at an array of pointers, each of which points to - // the TLS block of a dll. So here, we need to get the TLS index for - // the dll, add that to pTlsPtr, and dereference it to get the TLS - // block of the dll. - DWORD tlsIndex = pModule->GetTlsIndex(); - LPVOID pDllTlsBase = (LPVOID)*((UINT_PTR*)pTlsPtr + tlsIndex); - - // Finally, we need to find the field offset into the TLS block. - addr = (LPVOID)((PBYTE)pDllTlsBase + pModule->GetFieldTlsOffset(pFD->GetOffset())); - - HELPER_METHOD_FRAME_END(); - - return addr; -} -HCIMPLEND -#endif // FEATURE_MIXEDMODE #ifdef FEATURE_REMOTING HCIMPL1(void*, JIT_GetStaticFieldAddr_Context, FieldDesc *pFD) |