2 instantiations of MethodCodeNode
ILCompiler.RyuJit (2)
Compiler\DependencyAnalysis\RyuJitNodeFactory.cs (2)
45return new MethodCodeNode(method); 63return new MethodCodeNode(TypeSystemContext.GetSpecialUnboxingThunk(method, TypeSystemContext.GeneratedAssembly));
48 references to MethodCodeNode
ILCompiler.RyuJit (48)
Compiler\DependencyAnalysis\MethodCodeNode.cs (3)
384return comparer.Compare(_method, ((MethodCodeNode)other)._method); 394private readonly MethodCodeNode _node; 396public MethodCodeNodeDebugView(MethodCodeNode node)
Compiler\RyuJitCompilation.cs (11)
135var methodsToCompile = new List<MethodCodeNode>(); 140var methodCodeNodeNeedingCode = dependency as MethodCodeNode; 146methodCodeNodeNeedingCode = (MethodCodeNode)dependencyMethod.CanonicalMethodNode; 169private void CompileMultiThreaded(List<MethodCodeNode> methodsToCompile) 176Parallel.ForEach<MethodCodeNode, WorkerState>( 186private void CompileSingleThreaded(List<MethodCodeNode> methodsToCompile) 188foreach (MethodCodeNode methodCodeNodeNeedingCode in methodsToCompile) 200MethodCodeNode methodCodeNodeNeedingCode, 208private void CompileSingleMethod(MethodCodeNode methodCodeNodeNeedingCode, ref WorkerState workerState) 222private void CompileSingleMethod(CorInfoImpl corInfo, MethodCodeNode methodCodeNodeNeedingCode)
JitInterface\CorInfoImpl.RyuJit.cs (2)
37private MethodCodeNode _methodCodeNode; 65public void CompileMethod(MethodCodeNode methodCodeNodeNeedingCode, MethodIL methodIL = null)
parent\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (32)
25using MethodWithGCInfo = ILCompiler.DependencyAnalysis.MethodCodeNode; 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) 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);