diff options
author | Michal Strehovsky <michals@microsoft.com> | 2016-06-29 20:17:34 +0300 |
---|---|---|
committer | Michal Strehovsky <michals@microsoft.com> | 2016-06-29 20:17:34 +0300 |
commit | 8cc50db240aa7861795e134958fb5833422fc250 (patch) | |
tree | f5cdb505646d1ca628d43164be10e8ff9a2663af /src/Native/Runtime/MiscHelpers.cpp | |
parent | 486bd34c9afdfa7c94e00bf82d05d20502ea3baf (diff) |
Delete a bunch of runtime exports that are no longer needed
EEType is now a binary contract with a shared EEType.cs reader implementation.
The various EEType probing runtime exports have been superseded by the common EEType.cs -> remove the usage of the exports and delete them.
I will do RhGetCorElementType and RhGetEETypeClassification in a separate changeset because those introduce enum types that have widespread usage and should be deleted in favor of the common ones. This change is big enough as is.
Testing: standard precheckin + NUTC 1k test suite (to test pntestcl)
[tfs-changeset: 1615277]
Diffstat (limited to 'src/Native/Runtime/MiscHelpers.cpp')
-rw-r--r-- | src/Native/Runtime/MiscHelpers.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/src/Native/Runtime/MiscHelpers.cpp b/src/Native/Runtime/MiscHelpers.cpp index 34ddfeb89..46916b297 100644 --- a/src/Native/Runtime/MiscHelpers.cpp +++ b/src/Native/Runtime/MiscHelpers.cpp @@ -54,37 +54,6 @@ COOP_PINVOKE_HELPER(Boolean, RhYield, ()) return PalSwitchToThread() ? Boolean_true : Boolean_false; } -// Get the rarely used (optional) flags of an EEType. If they're not present 0 will be returned. -COOP_PINVOKE_HELPER(UInt32, RhpGetEETypeRareFlags, (EEType * pEEType)) -{ - return pEEType->get_RareFlags(); -} - -// For an ICastable type return a pointer to code that implements ICastable.IsInstanceOfInterface. -COOP_PINVOKE_HELPER(UIntNative, RhpGetICastableIsInstanceOfInterfaceMethod, (EEType * pEEType)) -{ - ASSERT(pEEType->IsICastable()); - return (UIntNative)pEEType->get_ICastableIsInstanceOfInterfaceMethod(); -} - -// For an ICastable type return a pointer to code that implements ICastable.ICastableGetImplType. -COOP_PINVOKE_HELPER(UIntNative, RhpGetICastableGetImplTypeMethod, (EEType * pEEType)) -{ - ASSERT(pEEType->IsICastable()); - return (UIntNative)pEEType->get_ICastableGetImplTypeMethod(); -} - -// Return the unboxed size of a value type. -COOP_PINVOKE_HELPER(UInt32, RhGetValueTypeSize, (EEType * pEEType)) -{ - ASSERT(pEEType->get_IsValueType()); - - // get_BaseSize returns the GC size including space for the sync block index field, the EEType* and - // padding for GC heap alignment. Must subtract all of these to get the size used for locals, array - // elements or fields of another type. - return pEEType->get_BaseSize() - (sizeof(ObjHeader) + sizeof(EEType*) + pEEType->get_ValueTypeFieldPadding()); -} - // Return the DispatchMap pointer of a type COOP_PINVOKE_HELPER(DispatchMap*, RhGetDispatchMapForType, (EEType * pEEType)) { @@ -242,16 +211,6 @@ COOP_PINVOKE_HELPER(void *, GetClasslibCCtorCheck, (void * pReturnAddress)) return pCallback; } -COOP_PINVOKE_HELPER(UInt8, RhpGetNullableEETypeValueOffset, (EEType * pEEType)) -{ - return pEEType->GetNullableValueOffset(); -} - -COOP_PINVOKE_HELPER(EEType *, RhpGetNullableEEType, (EEType * pEEType)) -{ - return pEEType->GetNullableType(); -} - COOP_PINVOKE_HELPER(Boolean, RhpHasDispatchMap, (EEType * pEEType)) { return pEEType->HasDispatchMap(); @@ -267,11 +226,6 @@ COOP_PINVOKE_HELPER(EEType *, RhpGetArrayBaseType, (EEType * pEEType)) return pEEType->GetArrayBaseType(); } -COOP_PINVOKE_HELPER(PTR_Code, RhpGetSealedVirtualSlot, (EEType * pEEType, UInt16 slot)) -{ - return pEEType->get_SealedVirtualSlot(slot); -} - // Obtain the address of a thread static field for the current thread given the enclosing type and a field cookie // obtained from a fixed up binder blob field record. COOP_PINVOKE_HELPER(UInt8 *, RhGetThreadStaticFieldAddress, (EEType * pEEType, ThreadStaticFieldOffsets* pFieldCookie)) |