2 instantiations of MethodWithGCInfo
ILCompiler.ReadyToRun (2)
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (1)
489return new MethodWithGCInfo(key);
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
810MethodWithGCInfo methodCodeNode = new MethodWithGCInfo(method)
126 references to MethodWithGCInfo
ILCompiler.ReadyToRun (126)
CodeGen\ReadyToRunObjectWriter.cs (1)
219foreach (MethodWithGCInfo methodNode in _nodeFactory.EnumerateCompiledMethods())
Compiler\DependencyAnalysis\ReadyToRun\DebugInfoTableNode.cs (1)
85foreach (MethodWithGCInfo method in factory.EnumerateCompiledMethods())
Compiler\DependencyAnalysis\ReadyToRun\DelayLoadMethodImport.cs (3)
15private readonly MethodWithGCInfo _localMethod; 21MethodWithGCInfo localMethod, 40public MethodWithGCInfo MethodCodeNode => _localMethod;
Compiler\DependencyAnalysis\ReadyToRun\ExceptionInfoLookupTableNode.cs (3)
64private List<MethodWithGCInfo> _methodNodes; 92_methodNodes = new List<MethodWithGCInfo>(); 95foreach (MethodWithGCInfo method in _nodeFactory.EnumerateCompiledMethods())
Compiler\DependencyAnalysis\ReadyToRun\InliningInfoNode.cs (1)
68foreach (MethodWithGCInfo methodNode in factory.EnumerateCompiledMethods(_module, CompiledMethodCategory.All))
Compiler\DependencyAnalysis\ReadyToRun\InstanceEntryPointTableNode.cs (3)
38foreach (MethodWithGCInfo method in _factory.EnumerateCompiledMethods(null, CompiledMethodCategory.Instantiated)) 89private byte[] BuildSignatureForMethod(MethodWithGCInfo method, NodeFactory factory) 110foreach (MethodWithGCInfo method in factory.EnumerateCompiledMethods(null, CompiledMethodCategory.Instantiated))
Compiler\DependencyAnalysis\ReadyToRun\MethodEntryPointTableNode.cs (3)
25public readonly MethodWithGCInfo Method; 29public EntryPoint(int methodIndex, MethodWithGCInfo method) 51foreach (MethodWithGCInfo method in factory.EnumerateCompiledMethods(_module, CompiledMethodCategory.NonInstantiated))
Compiler\DependencyAnalysis\ReadyToRun\MethodGCInfoNode.cs (2)
16private readonly MethodWithGCInfo _methodNode; 18public MethodGCInfoNode(MethodWithGCInfo methodNode)
Compiler\DependencyAnalysis\ReadyToRun\MethodWithGCInfo.cs (2)
436MethodWithGCInfo otherNode = (MethodWithGCInfo)other;
Compiler\DependencyAnalysis\ReadyToRun\PrecodeMethodImport.cs (3)
16private readonly MethodWithGCInfo _localMethod; 23MethodWithGCInfo localMethod, 39public MethodWithGCInfo MethodCodeNode => _localMethod;
Compiler\DependencyAnalysis\ReadyToRun\ResumptionStubEntryPointSignature.cs (2)
12private readonly MethodWithGCInfo _resumptionStub; 14public ResumptionStubEntryPointSignature(MethodWithGCInfo resumptionStub) => _resumptionStub = resumptionStub;
Compiler\DependencyAnalysis\ReadyToRun\RuntimeFunctionsTableNode.cs (11)
17private List<MethodWithGCInfo> _methodNodes; 18private Dictionary<MethodWithGCInfo, int> _insertedMethodNodes; 19private Dictionary<(MethodWithGCInfo method, int funcletIdx), uint> _methodToVirtualIP; 39public int GetIndex(MethodWithGCInfo method) 53_methodNodes = new List<MethodWithGCInfo>(); 54_insertedMethodNodes = new Dictionary<MethodWithGCInfo, int>(); 58foreach (MethodWithGCInfo method in _nodeFactory.EnumerateCompiledMethods()) 66public uint GetWasmVirtualIP(MethodWithGCInfo lookupMethod, int lookupFrameIndex) 86Dictionary<(MethodWithGCInfo method, int funcletIdx), uint> methodToVirtualIP = new (); 91foreach (MethodWithGCInfo method in _methodNodes) 139foreach (MethodWithGCInfo method in _methodNodes)
Compiler\DependencyAnalysis\ReadyToRun\StoreMultiCallableAddrOfCodeSignature.cs (2)
29private readonly MethodWithGCInfo _target; 33public StoreMultiCallableAddrOfCodeSignature(MethodWithGCInfo target, ISymbolNode location, int locationOffset)
Compiler\DependencyAnalysis\ReadyToRun\WasmMethodFrameIdentityNode.cs (2)
14private readonly MethodWithGCInfo _method; 16public WasmMethodFrameIdentityNode(NodeFactory factory, MethodWithGCInfo method)
Compiler\DependencyAnalysis\ReadyToRun\WasmMethodRelativeVirtualIPNode.cs (2)
14private readonly MethodWithGCInfo _method; 16public WasmMethodRelativeVirtualIPNode(NodeFactory factory, MethodWithGCInfo method)
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (13)
132private NodeCache<MethodDesc, MethodWithGCInfo> _localMethodCache; 134public MethodWithGCInfo CompiledMethodNode(MethodDesc method) 487_localMethodCache = new NodeCache<MethodDesc, MethodWithGCInfo>(key => 674MethodWithGCInfo methodWithGCInfo = null; 710public IEnumerable<MethodWithGCInfo> EnumerateCompiledMethods() 715public IEnumerable<MethodWithGCInfo> EnumerateCompiledMethods(EcmaModule moduleToEnumerate, CompiledMethodCategory methodCategory) 720MethodWithGCInfo methodCodeNode = methodNode as MethodWithGCInfo; 753foreach (MethodWithGCInfo compiled in EnumerateCompiledMethods()) 1506private NodeCache<MethodWithGCInfo, WasmMethodRelativeVirtualIPNode> _wasmMethodRelativeVirtualIPs; 1507private NodeCache<MethodWithGCInfo, WasmMethodFrameIdentityNode> _wasmMethodFrameIdentities; 1560internal WasmMethodRelativeVirtualIPNode WasmMethodRelativeVirtualIP(MethodWithGCInfo method) 1565internal WasmMethodFrameIdentityNode WasmMethodFrameIdentity(MethodWithGCInfo method)
Compiler\DependencyAnalysis\ReadyToRunSymbolNodeFactory.cs (3)
94_resumptionStubEntryPointFixups = new NodeCache<MethodWithGCInfo, Import>(key => 333private NodeCache<MethodWithGCInfo, Import> _resumptionStubEntryPointFixups; 802internal Import ResumptionStubEntryPoint(MethodWithGCInfo resumptionStub)
Compiler\FileLayoutOptimizer.cs (40)
80List<MethodWithGCInfo> methods = new List<MethodWithGCInfo>(); 83if (node is MethodWithGCInfo method) 93List<MethodWithGCInfo> sortedMethodsList = methods; 95foreach (var methodNode in sortedMethodsList) 115foreach (var method in sortedMethodsList) 161private List<MethodWithGCInfo> ApplyMethodSort(List<MethodWithGCInfo> methods) 171int sortMethodWithGCInfoByWeight(MethodWithGCInfo left, MethodWithGCInfo right) 178methods.MergeSortAllowDuplicates((MethodWithGCInfo left, MethodWithGCInfo right) => ComputeHotColdRegion(left).CompareTo(ComputeHotColdRegion(right))); 180int ComputeHotColdRegion(MethodWithGCInfo method) 187methods.MergeSortAllowDuplicates((MethodWithGCInfo left, MethodWithGCInfo right) => (_profileData[left.Method] != null).CompareTo(_profileData[right.Method] != null)); 191methods.MergeSortAllowDuplicates((MethodWithGCInfo left, MethodWithGCInfo right) => ComputeHotWarmColdRegion(left).CompareTo(ComputeHotWarmColdRegion(right))); 193int ComputeHotWarmColdRegion(MethodWithGCInfo method) 226MethodWithGCInfo temp = methods[i]; 233var nameMap = new Dictionary<string, MethodWithGCInfo>(methods.Count); 234var order = new Dictionary<MethodWithGCInfo, int>(methods.Count); 249|| !nameMap.TryGetValue(symbolName, out MethodWithGCInfo m)) 256methods.MergeSortAllowDuplicates((MethodWithGCInfo left, MethodWithGCInfo right) => order[left].CompareTo(order[right])); 266private double MethodWithGCInfoToWeight(MethodWithGCInfo method) 300private List<MethodWithGCInfo> MethodCallFrequencySort(List<MethodWithGCInfo> methodsToPlace) 307Dictionary<MethodDesc, MethodWithGCInfo> methodMap = new Dictionary<MethodDesc, MethodWithGCInfo>(); 308foreach (MethodWithGCInfo methodWithGCInfo in methodsToPlace) 323List<MethodWithGCInfo> outputMethods = new List<MethodWithGCInfo>(); 328if (methodMap.TryGetValue(call.Caller, out MethodWithGCInfo callerWithGCInfo) && callerWithGCInfo != null) 333if (methodMap.TryGetValue(call.Callee, out MethodWithGCInfo calleeWithGCInfo) && calleeWithGCInfo != null) 350private List<MethodWithGCInfo> PettisHansenSort(List<MethodWithGCInfo> methodsToPlace) 355foreach (MethodWithGCInfo method in methodsToPlace) 363foreach (MethodWithGCInfo method in methodsToPlace) 391List<MethodWithGCInfo> result = new List<MethodWithGCInfo>(methodsToPlace.Count);
Compiler\ReadyToRunCodegenCompilation.cs (20)
264MethodWithGCInfo methodEntryPoint = _factory.CompiledMethodNode(canonMethod); 315private readonly HashSet<MethodWithGCInfo> _methodsToRecompile = new HashSet<MethodWithGCInfo>(); 722public void PrepareForCompilationRetry(MethodWithGCInfo methodToBeRecompiled, IEnumerable<MethodDesc> methodsThatNeedILBodies) 768if (dependency is MethodWithGCInfo methodCodeNodeNeedingCode) 803List<MethodWithGCInfo> managedHelpers = new List<MethodWithGCInfo>(); 804HashSet<MethodWithGCInfo> seenManagedHelpers = new HashSet<MethodWithGCInfo>(); 808if (dependency is MethodWithGCInfo { IsJitHelper: true } managedHelper) 903bool ProbeAndCompileManagedHelpers(List<MethodWithGCInfo> managedHelpers) 931foreach (MethodWithGCInfo managedHelper in managedHelpers) 1014foreach (MethodWithGCInfo managedHelper in managedHelpers) 1029List<MethodWithGCInfo> managedHelpers, 1033foreach (MethodWithGCInfo managedHelper in managedHelpers) 1047bool HasInstructionSetSupportFixup(MethodWithGCInfo managedHelper) 1065MethodWithGCInfo[] methodsToRecompile = new MethodWithGCInfo[_methodsToRecompile.Count]; 1130MethodWithGCInfo methodCodeNodeNeedingCode = dependency as MethodWithGCInfo;
JitInterface\CorInfoImpl.ReadyToRun.cs (8)
492private MethodWithGCInfo _methodCodeNode; 522private void AddResumptionStubFixup(MethodWithGCInfo compiledStubNode) 803public void CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logger) 810MethodWithGCInfo methodCodeNode = new MethodWithGCInfo(method) 818private ManagedHelperProbeResult CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logger, bool publishCode) 2766MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 3451if (HandleToObject(target) is not MethodWithGCInfo targetMethodNode) 3486MethodWithGCInfo method = _compilation.NodeFactory.CompiledMethodNode(targetMethod);
parent\parent\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (1)
262foreach (ILCompiler.DependencyAnalysis.ReadyToRun.MethodWithGCInfo method in _nodeFactory.EnumerateCompiledMethods())