2 instantiations of MethodWithGCInfo
ILCompiler.ReadyToRun (2)
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (1)
490return new MethodWithGCInfo(key);
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
811MethodWithGCInfo methodCodeNode = new MethodWithGCInfo(method)
121 references to MethodWithGCInfo
ILCompiler.ReadyToRun (121)
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)
14private readonly MethodWithGCInfo _localMethod; 20MethodWithGCInfo localMethod, 39public 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)
15private readonly MethodWithGCInfo _methodNode; 17public MethodGCInfoNode(MethodWithGCInfo methodNode)
Compiler\DependencyAnalysis\ReadyToRun\MethodWithGCInfo.cs (2)
429MethodWithGCInfo otherNode = (MethodWithGCInfo)other;
Compiler\DependencyAnalysis\ReadyToRun\PrecodeMethodImport.cs (3)
15private readonly MethodWithGCInfo _localMethod; 22MethodWithGCInfo localMethod, 38public 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\WasmMethodRelativeVirtualIPNode.cs (2)
14private readonly MethodWithGCInfo _method; 16public WasmMethodRelativeVirtualIPNode(NodeFactory factory, MethodWithGCInfo method)
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (11)
131private NodeCache<MethodDesc, MethodWithGCInfo> _localMethodCache; 133public MethodWithGCInfo CompiledMethodNode(MethodDesc method) 488_localMethodCache = new NodeCache<MethodDesc, MethodWithGCInfo>(key => 671MethodWithGCInfo methodWithGCInfo = null; 707public IEnumerable<MethodWithGCInfo> EnumerateCompiledMethods() 712public IEnumerable<MethodWithGCInfo> EnumerateCompiledMethods(EcmaModule moduleToEnumerate, CompiledMethodCategory methodCategory) 717MethodWithGCInfo methodCodeNode = methodNode as MethodWithGCInfo; 750foreach (MethodWithGCInfo compiled in EnumerateCompiledMethods()) 1503private NodeCache<MethodWithGCInfo, WasmMethodRelativeVirtualIPNode> _wasmMethodRelativeVirtualIPs; 1556internal WasmMethodRelativeVirtualIPNode WasmMethodRelativeVirtualIP(MethodWithGCInfo method)
Compiler\DependencyAnalysis\ReadyToRunSymbolNodeFactory.cs (3)
85_resumptionStubEntryPointFixups = new NodeCache<MethodWithGCInfo, Import>(key => 324private NodeCache<MethodWithGCInfo, Import> _resumptionStubEntryPointFixups; 779internal Import ResumptionStubEntryPoint(MethodWithGCInfo resumptionStub)
Compiler\FileLayoutOptimizer.cs (40)
78List<MethodWithGCInfo> methods = new List<MethodWithGCInfo>(); 81if (node is MethodWithGCInfo method) 91List<MethodWithGCInfo> sortedMethodsList = methods; 93foreach (var methodNode in sortedMethodsList) 109foreach (var method in sortedMethodsList) 137private List<MethodWithGCInfo> ApplyMethodSort(List<MethodWithGCInfo> methods) 147int sortMethodWithGCInfoByWeight(MethodWithGCInfo left, MethodWithGCInfo right) 154methods.MergeSortAllowDuplicates((MethodWithGCInfo left, MethodWithGCInfo right) => ComputeHotColdRegion(left).CompareTo(ComputeHotColdRegion(right))); 156int ComputeHotColdRegion(MethodWithGCInfo method) 163methods.MergeSortAllowDuplicates((MethodWithGCInfo left, MethodWithGCInfo right) => (_profileData[left.Method] != null).CompareTo(_profileData[right.Method] != null)); 167methods.MergeSortAllowDuplicates((MethodWithGCInfo left, MethodWithGCInfo right) => ComputeHotWarmColdRegion(left).CompareTo(ComputeHotWarmColdRegion(right))); 169int ComputeHotWarmColdRegion(MethodWithGCInfo method) 202MethodWithGCInfo temp = methods[i]; 209var nameMap = new Dictionary<string, MethodWithGCInfo>(methods.Count); 210var order = new Dictionary<MethodWithGCInfo, int>(methods.Count); 225|| !nameMap.TryGetValue(symbolName, out MethodWithGCInfo m)) 232methods.MergeSortAllowDuplicates((MethodWithGCInfo left, MethodWithGCInfo right) => order[left].CompareTo(order[right])); 242private double MethodWithGCInfoToWeight(MethodWithGCInfo method) 276private List<MethodWithGCInfo> MethodCallFrequencySort(List<MethodWithGCInfo> methodsToPlace) 283Dictionary<MethodDesc, MethodWithGCInfo> methodMap = new Dictionary<MethodDesc, MethodWithGCInfo>(); 284foreach (MethodWithGCInfo methodWithGCInfo in methodsToPlace) 299List<MethodWithGCInfo> outputMethods = new List<MethodWithGCInfo>(); 304if (methodMap.TryGetValue(call.Caller, out MethodWithGCInfo callerWithGCInfo) && callerWithGCInfo != null) 309if (methodMap.TryGetValue(call.Callee, out MethodWithGCInfo calleeWithGCInfo) && calleeWithGCInfo != null) 326private List<MethodWithGCInfo> PettisHansenSort(List<MethodWithGCInfo> methodsToPlace) 331foreach (MethodWithGCInfo method in methodsToPlace) 339foreach (MethodWithGCInfo method in methodsToPlace) 367List<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 (7)
492private MethodWithGCInfo _methodCodeNode; 523private void AddResumptionStubFixup(MethodWithGCInfo compiledStubNode) 804public void CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logger) 811MethodWithGCInfo methodCodeNode = new MethodWithGCInfo(method) 819private ManagedHelperProbeResult CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logger, bool publishCode) 2769MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 3454if (HandleToObject(target) is not MethodWithGCInfo targetMethodNode)
parent\parent\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (1)
261foreach (ILCompiler.DependencyAnalysis.ReadyToRun.MethodWithGCInfo method in _nodeFactory.EnumerateCompiledMethods())