2 instantiations of MethodCodeNode
ILCompiler.RyuJit (2)
Compiler\DependencyAnalysis\RyuJitNodeFactory.cs (2)
45
return new
MethodCodeNode
(method);
63
return new
MethodCodeNode
(TypeSystemContext.GetSpecialUnboxingThunk(method, TypeSystemContext.GeneratedAssembly));
46 references to MethodCodeNode
ILCompiler.RyuJit (46)
Compiler\DependencyAnalysis\MethodCodeNode.cs (3)
323
return comparer.Compare(_method, ((
MethodCodeNode
)other)._method);
333
private readonly
MethodCodeNode
_node;
335
public MethodCodeNodeDebugView(
MethodCodeNode
node)
Compiler\RyuJitCompilation.cs (9)
125
var methodsToCompile = new List<
MethodCodeNode
>();
130
var
methodCodeNodeNeedingCode = dependency as
MethodCodeNode
;
136
methodCodeNodeNeedingCode = (
MethodCodeNode
)dependencyMethod.CanonicalMethodNode;
159
private void CompileMultiThreaded(List<
MethodCodeNode
> methodsToCompile)
173
private void CompileSingleThreaded(List<
MethodCodeNode
> methodsToCompile)
177
foreach (
MethodCodeNode
methodCodeNodeNeedingCode in methodsToCompile)
188
private void CompileSingleMethod(
MethodCodeNode
methodCodeNodeNeedingCode)
194
private void CompileSingleMethod(CorInfoImpl corInfo,
MethodCodeNode
methodCodeNodeNeedingCode)
JitInterface\CorInfoImpl.RyuJit.cs (2)
37
private
MethodCodeNode
_methodCodeNode;
65
public void CompileMethod(
MethodCodeNode
methodCodeNodeNeedingCode, MethodIL methodIL = null)
src\runtime\src\coreclr\tools\aot\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (32)
23
using MethodWithGCInfo = ILCompiler.DependencyAnalysis.
MethodCodeNode
;
78
List<
MethodWithGCInfo
> methods = new List<
MethodWithGCInfo
>();
81
if (node is
MethodWithGCInfo
method)
91
List<
MethodWithGCInfo
> sortedMethodsList = methods;
93
foreach (
var
methodNode in sortedMethodsList)
109
foreach (
var
method in sortedMethodsList)
137
private List<
MethodWithGCInfo
> ApplyMethodSort(List<
MethodWithGCInfo
> methods)
147
int sortMethodWithGCInfoByWeight(
MethodWithGCInfo
left,
MethodWithGCInfo
right)
154
methods.MergeSortAllowDuplicates((
MethodWithGCInfo
left,
MethodWithGCInfo
right) => ComputeHotColdRegion(left).CompareTo(ComputeHotColdRegion(right)));
156
int ComputeHotColdRegion(
MethodWithGCInfo
method)
163
methods.MergeSortAllowDuplicates((
MethodWithGCInfo
left,
MethodWithGCInfo
right) => (_profileData[left.Method] != null).CompareTo(_profileData[right.Method] != null));
167
methods.MergeSortAllowDuplicates((
MethodWithGCInfo
left,
MethodWithGCInfo
right) => ComputeHotWarmColdRegion(left).CompareTo(ComputeHotWarmColdRegion(right)));
169
int ComputeHotWarmColdRegion(
MethodWithGCInfo
method)
202
MethodWithGCInfo
temp = methods[i];
209
var nameMap = new Dictionary<string,
MethodWithGCInfo
>(methods.Count);
210
var order = new Dictionary<
MethodWithGCInfo
, int>(methods.Count);
225
|| !nameMap.TryGetValue(symbolName, out
MethodWithGCInfo
m))
232
methods.MergeSortAllowDuplicates((
MethodWithGCInfo
left,
MethodWithGCInfo
right) => order[left].CompareTo(order[right]));
242
private double MethodWithGCInfoToWeight(
MethodWithGCInfo
method)
326
private List<
MethodWithGCInfo
> PettisHansenSort(List<
MethodWithGCInfo
> methodsToPlace)
331
foreach (
MethodWithGCInfo
method in methodsToPlace)
339
foreach (
MethodWithGCInfo
method in methodsToPlace)
367
List<
MethodWithGCInfo
> result = new List<
MethodWithGCInfo
>(methodsToPlace.Count);