@@ -727,9 +727,9 @@ type InfoReader(g: TcGlobals, amap: Import.ImportMap) as this =
727727 /// Make a cache for function 'f' keyed by type (plus some additional 'flags') that only
728728 /// caches computations for monomorphic types.
729729
730- let MakeInfoCache f ( flagsEq : IEqualityComparer < _ >) =
730+ let MakeInfoCache name f ( flagsEq : IEqualityComparer < _ >) =
731731 MemoizationTable<_, _>
732- ( compute= f,
732+ ( name , compute= f,
733733 // Only cache closed, monomorphic types (closed = all members for the type
734734 // have been processed). Generic type instantiations could be processed if we had
735735 // a decent hash function for these.
@@ -803,18 +803,18 @@ type InfoReader(g: TcGlobals, amap: Import.ImportMap) as this =
803803 member _.GetHashCode (( ad , nm )) = AccessorDomain.CustomGetHashCode ad + hash nm
804804 member _.Equals (( ad1 , nm1 ), ( ad2 , nm2 )) = AccessorDomain.CustomEquals( g, ad1, ad2) && ( nm1 = nm2) }
805805
806- let methodInfoCache = MakeInfoCache GetIntrinsicMethodSetsUncached hashFlags0
807- let propertyInfoCache = MakeInfoCache GetIntrinsicPropertySetsUncached hashFlags0
808- let recdOrClassFieldInfoCache = MakeInfoCache GetIntrinsicRecdOrClassFieldInfosUncached hashFlags1
809- let ilFieldInfoCache = MakeInfoCache GetIntrinsicILFieldInfosUncached hashFlags1
810- let eventInfoCache = MakeInfoCache GetIntrinsicEventInfosUncached hashFlags1
811- let namedItemsCache = MakeInfoCache GetIntrinsicNamedItemsUncached hashFlags2
812- let mostSpecificOverrideMethodInfoCache = MakeInfoCache GetIntrinsicMostSpecificOverrideMethodSetsUncached hashFlags0
813-
814- let entireTypeHierarchyCache = MakeInfoCache GetEntireTypeHierarchyUncached HashIdentity.Structural
815- let primaryTypeHierarchyCache = MakeInfoCache GetPrimaryTypeHierarchyUncached HashIdentity.Structural
816- let implicitConversionCache = MakeInfoCache FindImplicitConversionsUncached hashFlags3
817- let isInterfaceWithStaticAbstractMethodCache = MakeInfoCache IsInterfaceTypeWithMatchingStaticAbstractMemberUncached hashFlags4
806+ let methodInfoCache = MakeInfoCache " methodInfoCache " GetIntrinsicMethodSetsUncached hashFlags0
807+ let propertyInfoCache = MakeInfoCache " propertyInfoCache " GetIntrinsicPropertySetsUncached hashFlags0
808+ let recdOrClassFieldInfoCache = MakeInfoCache " recdOrClassFieldInfoCache " GetIntrinsicRecdOrClassFieldInfosUncached hashFlags1
809+ let ilFieldInfoCache = MakeInfoCache " ilFieldInfoCache " GetIntrinsicILFieldInfosUncached hashFlags1
810+ let eventInfoCache = MakeInfoCache " eventInfoCache " GetIntrinsicEventInfosUncached hashFlags1
811+ let namedItemsCache = MakeInfoCache " namedItemsCache " GetIntrinsicNamedItemsUncached hashFlags2
812+ let mostSpecificOverrideMethodInfoCache = MakeInfoCache " mostSpecificOverrideMethodInfoCache " GetIntrinsicMostSpecificOverrideMethodSetsUncached hashFlags0
813+
814+ let entireTypeHierarchyCache = MakeInfoCache " entireTypeHierarchyCache " GetEntireTypeHierarchyUncached HashIdentity.Structural
815+ let primaryTypeHierarchyCache = MakeInfoCache " primaryTypeHierarchyCache " GetPrimaryTypeHierarchyUncached HashIdentity.Structural
816+ let implicitConversionCache = MakeInfoCache " implicitConversionCache " FindImplicitConversionsUncached hashFlags3
817+ let isInterfaceWithStaticAbstractMethodCache = MakeInfoCache " isInterfaceWithStaticAbstractMethodCache " IsInterfaceTypeWithMatchingStaticAbstractMemberUncached hashFlags4
818818
819819 // Runtime feature support
820820
0 commit comments