181 references to Add
ILCompiler.Compiler (178)
Compiler\DependencyAnalysis\ConstructedEETypeNode.cs (3)
39
dependencyList.
Add
(factory.MetadataTypeSymbol(_type), "MetadataType for constructed type");
47
dependencyList.
Add
(factory.ConstructedTypeSymbol(_type.BaseType), "Array base type");
54
dependencyList.
Add
(factory.ConstructedTypeSymbol(arrayType.ElementType.MakeArrayType()), "Rank 1 array");
Compiler\DependencyAnalysis\EETypeNode.cs (3)
608
dependencies.
Add
(maximallyConstructableType, "Type is template-loadable");
631
dependencies.
Add
(factory.ConstructedTypeSymbol(canonicalType), "Type with generic virtual methods");
655
dependencies.
Add
(factory.MethodEntrypoint(method.GetCanonMethodTarget(CanonicalFormKind.Specific)),
Compiler\DependencyAnalysis\FrozenObjectNode.cs (1)
59
dependencies.
Add
(reloc.Target, "reloc");
Compiler\DependencyAnalysis\FunctionPointerMapNode.cs (2)
40
dependencies.
Add
(factory.NecessaryTypeSymbol(type.Signature.ReturnType), "Function pointer type composition");
42
dependencies.
Add
(factory.NecessaryTypeSymbol(paramType), "Function pointer type composition");
Compiler\DependencyAnalysis\GenericDefinitionEETypeNode.cs (1)
108
dependencyList.
Add
(factory.NecessaryTypeSymbol(_type), "Reflection invisible type for a visible type");
Compiler\DependencyAnalysis\GenericVirtualMethodImplNode.cs (1)
53
dependencies.
Add
(factory.MethodEntrypoint(_method, getUnboxingStub), "GVM Dependency - Canon method");
Compiler\DependencyAnalysis\GenericVirtualMethodTableNode.cs (2)
55
dependencies.
Add
(factory.NecessaryTypeSymbol(openCallingMethod.OwningType), "Owning type of GVM declaration");
57
dependencies.
Add
(factory.NecessaryTypeSymbol(openImplementationMethod.OwningType), "Owning type of GVM implementation");
Compiler\DependencyAnalysis\GvmDispatchCellInfoSectionNode.cs (2)
115
result.
Add
(factory.MaximallyConstructableType(targetMethod.OwningType), "Owning type of GVM decl");
116
result.
Add
(factory.MetadataEnabledGenericComposition(targetMethod.Instantiation), "GVM instantiation info");
Compiler\DependencyAnalysis\InterfaceDispatchCellInfoSectionNode.cs (1)
103
result.
Add
(GetInterfaceTypeNode(factory, targetMethod), "Interface type");
Compiler\DependencyAnalysis\MetadataEETypeNode.cs (5)
38
dependencyList.
Add
(factory.NecessaryTypeSymbol(_type), "NecessaryType for metadata type");
49
dependencyList.
Add
(factory.MaximallyConstructableType(_type), "Reflection visible valuetype");
53
dependencyList.
Add
(factory.MaximallyConstructableType(_type), "Reflection visible delegate");
57
dependencyList.
Add
(factory.MaximallyConstructableType(_type), "Reflection visible array");
75
dependencyList.
Add
(factory.MaximallyConstructableType(_type), "Has static virtual methods");
Compiler\DependencyAnalysis\ModuleUseBasedDependencyAlgorithm.cs (1)
17
dependencyList.
Add
(factory.MethodEntrypoint(moduleCctor), "Module with a static constructor");
Compiler\DependencyAnalysis\NativeLayoutVertexNode.cs (9)
1287
result.
Add
(dependency, "template construction dependency for method OwningType");
1293
result.
Add
(dependency, "template construction dependency for method Instantiation types");
1328
dependencies.
Add
(dependency, "template construction dependency for method OwningType");
1334
dependencies.
Add
(dependency, "template construction dependency for method Instantiation types");
1373
result.
Add
(dependency, "template construction dependency");
1412
result.
Add
(dependency, "template construction dependency for method OwningType");
1418
result.
Add
(dependency, "template construction dependency for method Instantiation types");
1574
dependencies.
Add
(dependency, "template construction dependency for method OwningType");
1580
dependencies.
Add
(dependency, "template construction dependency for method Instantiation types");
Compiler\DependencyAnalysis\ReadyToRunGenericHelperNode.cs (1)
187
result.
Add
(GetBadSlotHelper(factory), "Failure to build dictionary slot");
Compiler\DependencyAnalysis\ReflectedFieldNode.cs (5)
60
dependencies.
Add
(factory.MaximallyConstructableType(_field.OwningType), "Instance base of a reflectable field");
74
dependencies.
Add
(factory.TypeThreadStaticIndex(_field.OwningType), "Threadstatic base of a reflectable field");
78
dependencies.
Add
(factory.TypeGCStaticsSymbol(_field.OwningType), "GC static base of a reflectable field");
82
dependencies.
Add
(factory.TypeNonGCStaticsSymbol(_field.OwningType), "NonGC static base of a reflectable field");
88
dependencies.
Add
(factory.TypeNonGCStaticsSymbol(_field.OwningType), "CCtor context");
Compiler\DependencyAnalysis\ReflectionInvokeMapNode.cs (7)
47
dependencies.
Add
(factory.MaximallyConstructableType(method.OwningType), "Reflection invoke");
52
dependencies.
Add
(factory.MethodEntrypoint(invokeStub), "Reflection invoke");
61
dependencies.
Add
(factory.MethodEntrypoint(method, unboxingStub: true), "Reflection unboxing stub");
69
dependencies.
Add
(factory.AddressTakenMethodEntrypoint(method), "Body of a reflectable method");
76
dependencies.
Add
(factory.NecessaryTypeSymbol(instArg), "Reflectable generic method inst arg");
109
dependencies.
Add
(factory.MaximallyConstructableType(type.NormalizeInstantiation()), reason);
111
dependencies.
Add
(factory.MetadataTypeSymbol(type.NormalizeInstantiation()), reason);
Compiler\DependencyAnalysis\ReflectionInvokeSupportDependencyAlgorithm.cs (1)
49
dependencies.
Add
(
Compiler\DependencyAnalysis\ReflectionVirtualInvokeMapNode.cs (1)
85
dependencies.
Add
(
Compiler\DependencyAnalysis\StaticsInfoHashtableNode.cs (3)
51
dependencies.
Add
(factory.TypeGCStaticsSymbol(metadataType), "GC statics indirection for StaticsInfoHashtable");
58
dependencies.
Add
(factory.TypeNonGCStaticsSymbol(metadataType), "Non-GC statics indirection for StaticsInfoHashtable");
63
dependencies.
Add
(factory.TypeThreadStaticIndex(metadataType), "Threadstatics indirection for StaticsInfoHashtable");
Compiler\DependencyAnalysis\StringAllocatorMethodNode.cs (2)
53
result.
Add
(
56
result.
Add
(
Compiler\MetadataManager.cs (1)
515
dependencies.
Add
(factory.TypeNonGCStaticsSymbol((MetadataType)method.OwningType), "Static constructor is reflection-callable");
Compiler\UsageBasedMetadataManager.cs (2)
273
dependencies.
Add
(factory.MethodEntrypoint(moduleCctor), "Module with a static constructor");
366
var rootProvider = new RootingServiceProvider(factory, dependencies.
Add
);
IL\ILImporter.Scanner.cs (123)
149
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.GetNonGCStaticBase, method.OwningType), "Owning type cctor");
153
_dependencies.
Add
(_factory.ReadyToRunHelper(ReadyToRunHelperId.GetNonGCStaticBase, method.OwningType), "Owning type cctor");
162
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.MonitorEnter), reason);
163
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.MonitorExit), reason);
166
_dependencies.
Add
(_compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("System"u8, "Type"u8, "GetTypeFromMethodTable"u8, null)), reason);
171
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.NecessaryTypeHandle, method.OwningType), reason);
175
_dependencies.
Add
(_factory.NecessaryTypeSymbol(method.OwningType), reason);
181
_dependencies.
Add
(_compilation.NodeFactory.MethodEntrypoint(_compilation.NodeFactory.TypeSystemContext.GetCoreLibEntryPoint("Internal.Runtime.CompilerHelpers"u8, "SharedCodeHelpers"u8, "GetClassHandleFromMethodParam"u8, null)), reason);
190
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureContexts"u8, null)), reason);
191
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("RestoreContexts"u8, null)), reason);
279
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandleForCasting, catchType), "EH");
283
_dependencies.
Add
(_compilation.ComputeConstantLookup(ReadyToRunHelperId.TypeHandleForCasting, catchType), "EH");
324
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandleForCasting, type), "IsInst/CastClass");
328
_dependencies.
Add
(_compilation.ComputeConstantLookup(ReadyToRunHelperId.TypeHandleForCasting, type), "IsInst/CastClass");
622
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, owningType), reason);
626
_dependencies.
Add
(_factory.ConstructedTypeSymbol(owningType), reason);
634
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewMultiDimArrRare), reason);
636
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewMultiDimArr), reason);
641
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewObject), reason);
663
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DefaultConstructor, runtimeDeterminedMethod.Instantiation[0]), reason);
669
_dependencies.
Add
(type.IsValueType ? _factory.ExactCallableAddress(ctor) : _factory.CanonicalEntrypoint(ctor), reason);
679
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.ObjectAllocator, runtimeDeterminedMethod.Instantiation[0]), reason);
683
_dependencies.
Add
(_compilation.ComputeConstantLookup(ReadyToRunHelperId.ObjectAllocator, method.Instantiation[0]), reason);
693
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, runtimeDeterminedMethod.Instantiation[0]), reason);
697
_dependencies.
Add
(_factory.ConstructedTypeSymbol(method.Instantiation[0]), reason);
848
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.ConstrainedDirectCall, constrainedCallInfo), reason);
867
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodEntry, targetOfLookup), reason);
879
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodEntry, runtimeDeterminedMethod), reason);
883
_dependencies.
Add
(_factory.FatFunctionPointer(targetMethod), reason);
906
_dependencies.
Add
(_factory.StringAllocator(targetMethod), reason);
935
_dependencies.
Add
(instParam, reason);
938
_dependencies.
Add
(_factory.CanonicalEntrypoint(targetMethod), reason);
943
_dependencies.
Add
(GetMethodEntrypoint(targetMethod), reason);
948
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, _constrained), reason);
950
_dependencies.
Add
(_factory.ConstructedTypeSymbol(_constrained), reason);
956
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, runtimeDeterminedMethod.OwningType), reason);
976
_dependencies.
Add
(instParam, reason);
979
_dependencies.
Add
(GetMethodEntrypoint(targetMethod), reason);
1003
_dependencies.
Add
(GetGenericLookupHelper(constrainedHelperId, constrainedCallInfo), reason);
1017
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DispatchCell, methodToLookup), reason);
1024
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GVMLookupForSlot), reason);
1030
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DispatchCell, runtimeDeterminedMethod), reason);
1065
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.DelegateCtor, info), reason);
1067
_dependencies.
Add
(_factory.ReadyToRunHelper(ReadyToRunHelperId.DelegateCtor, info), reason);
1080
_dependencies.
Add
(_compilation.NodeFactory.MethodEntrypoint(resumptionStub), asyncReason);
1082
_dependencies.
Add
(_factory.ConstructedTypeSymbol(_compilation.TypeSystemContext.ContinuationType), asyncReason);
1086
_dependencies.
Add
(_compilation.GetHelperEntrypoint(ReadyToRunHelper.AllocContinuation), asyncReason);
1087
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureExecutionContext"u8, null)), asyncReason);
1088
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureContinuationContext"u8, null)), asyncReason);
1089
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("RestoreContextsOnSuspension"u8, null)), asyncReason);
1090
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("FinishSuspensionNoContinuationContext"u8, null)), asyncReason);
1091
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("FinishSuspensionWithContinuationContext"u8, null)), asyncReason);
1095
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("RestoreInlinedFrameContexts"u8, null)), asyncReason);
1096
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureInlinedFrameTransitionWithContinuationContext"u8, null)), asyncReason);
1097
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureInlinedFrameTransitionNoContinuationContext"u8, null)), asyncReason);
1098
_dependencies.
Add
(_factory.MethodEntrypoint(asyncHelpers.GetKnownMethod("CaptureInlinedFrameTransitionContinueOnThreadPool"u8, null)), asyncReason);
1138
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodDictionary, runtimeDeterminedResult), reason);
1139
_dependencies.
Add
(_factory.CanonicalEntrypoint(targetMethod), reason);
1145
_dependencies.
Add
(_factory.MethodGenericDictionary(runtimeDeterminedResult), reason);
1148
_dependencies.
Add
(GetMethodEntrypoint(targetMethod), reason);
1179
_dependencies.
Add
(_factory.CanonicalEntrypoint(stub), "calli");
1269
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.NecessaryTypeHandle, type), "Unbox");
1273
_dependencies.
Add
(_factory.NecessaryTypeSymbol(type), "Unbox");
1280
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Unbox_TypeTest), "Unbox");
1288
_dependencies.
Add
(GetHelperEntrypoint(helper), "Unbox");
1293
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRefAny), "refanyval");
1299
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.TypeHandleToRuntimeType), "mkrefany");
1300
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.TypeHandleToRuntimeTypeHandle), "mkrefany");
1310
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, type), reason);
1314
_dependencies.
Add
(_factory.MaximallyConstructableType(type), reason);
1343
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeTypeHandle), "ldtoken");
1344
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeType), "ldtoken");
1361
_dependencies.
Add
(reference, "ldtoken");
1369
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodHandle, method), "ldtoken");
1376
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeMethodHandle), "ldtoken");
1392
_dependencies.
Add
(_compilation.GetFieldRvaData(field), "InitializeArray/CreateSpan RVA data");
1399
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.FieldHandle, field), "ldtoken");
1406
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.GetRuntimeFieldHandle), "ldtoken");
1479
_dependencies.
Add
(_compilation.GetFieldRvaData(field), reason);
1505
_dependencies.
Add
(GetGenericLookupHelper(helperId, owningType), reason);
1509
_dependencies.
Add
(_factory.ReadyToRunHelper(helperId, owningType), reason);
1595
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, type), reason);
1599
_dependencies.
Add
(_factory.ConstructedTypeSymbol(type), reason);
1604
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Box_Nullable), reason);
1608
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Box), reason);
1623
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.TypeHandle, elementType.MakeArrayType()), "newarr");
1624
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.NewArray), "newarr");
1630
_dependencies.
Add
(_factory.ConstructedTypeSymbol(elementType.MakeArrayType()), "newarr");
1636
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelem");
1641
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelem");
1653
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Stelem_Ref), "stelem");
1656
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "stelem");
1665
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.NecessaryTypeHandle, elementType), "ldelema");
1667
_dependencies.
Add
(_factory.NecessaryTypeSymbol(elementType), "ldelema");
1669
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Ldelema_Ref), "ldelema");
1672
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.RngChkFail), "ldelema");
1683
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1689
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LMulOfv), "_lmulovf");
1690
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULMulOvf), "_ulmulovf");
1693
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1699
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULDiv), "_uldiv");
1700
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LDiv), "_ldiv");
1704
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.UDiv), "_udiv");
1705
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Div), "_div");
1710
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ThrowDivZero), "_divbyzero");
1713
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1721
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ULMod), "_ulmod");
1722
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.LMod), "_lmod");
1725
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.UMod), "_umod");
1726
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Mod), "_mod");
1731
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.ThrowDivZero), "_divbyzero");
1734
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
1738
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.DblRem), "rem");
1739
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.FltRem), "rem");
1748
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2IntOvf), "_dbl2intovf");
1749
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2UIntOvf), "_dbl2uintovf");
1750
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2LngOvf), "_dbl2lngovf");
1751
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Dbl2ULngOvf), "_dbl2ulngovf");
1753
_dependencies.
Add
(GetHelperEntrypoint(ReadyToRunHelper.Overflow), "_ovf");
2081
_dependencies.
Add
(GetGenericLookupHelper(ReadyToRunHelperId.MethodDictionary, runtimeDeterminedResult), reason);
2082
_dependencies.
Add
(_factory.CanonicalEntrypoint(targetMethod), reason);
2088
_dependencies.
Add
(_compilation.NodeFactory.MethodGenericDictionary(runtimeDeterminedResult), reason);
2091
_dependencies.
Add
(GetMethodEntrypoint(targetMethod), reason);
parent\parent\Common\Compiler\DependencyAnalysis\ObjectNode.cs (1)
67
dependencies.
Add
(reloc.Target, "reloc");
ILCompiler.ReadyToRun (3)
Compiler\DependencyAnalysis\ReadyToRun\MethodWithGCInfo.cs (1)
278
dependencyList.
Add
(node, "classMustBeLoadedBeforeCodeIsRun");
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
520
_additionalDependencies.
Add
(node, reason);
parent\parent\Common\Compiler\DependencyAnalysis\ObjectNode.cs (1)
67
dependencies.
Add
(reloc.Target, "reloc");