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));
48 references to MethodCodeNode
ILCompiler.RyuJit (48)
Compiler\DependencyAnalysis\MethodCodeNode.cs (3)
384
return comparer.Compare(_method, ((
MethodCodeNode
)other)._method);
394
private readonly
MethodCodeNode
_node;
396
public MethodCodeNodeDebugView(
MethodCodeNode
node)
Compiler\RyuJitCompilation.cs (11)
135
var methodsToCompile = new List<
MethodCodeNode
>();
140
var
methodCodeNodeNeedingCode = dependency as
MethodCodeNode
;
146
methodCodeNodeNeedingCode = (
MethodCodeNode
)dependencyMethod.CanonicalMethodNode;
169
private void CompileMultiThreaded(List<
MethodCodeNode
> methodsToCompile)
176
Parallel.ForEach<
MethodCodeNode
, WorkerState>(
186
private void CompileSingleThreaded(List<
MethodCodeNode
> methodsToCompile)
188
foreach (
MethodCodeNode
methodCodeNodeNeedingCode in methodsToCompile)
200
MethodCodeNode
methodCodeNodeNeedingCode,
208
private void CompileSingleMethod(
MethodCodeNode
methodCodeNodeNeedingCode, ref WorkerState workerState)
222
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)
parent\ILCompiler.ReadyToRun\Compiler\FileLayoutOptimizer.cs (32)
25
using MethodWithGCInfo = ILCompiler.DependencyAnalysis.
MethodCodeNode
;
80
List<
MethodWithGCInfo
> methods = new List<
MethodWithGCInfo
>();
83
if (node is
MethodWithGCInfo
method)
93
List<
MethodWithGCInfo
> sortedMethodsList = methods;
95
foreach (
var
methodNode in sortedMethodsList)
115
foreach (
var
method in sortedMethodsList)
161
private List<
MethodWithGCInfo
> ApplyMethodSort(List<
MethodWithGCInfo
> methods)
171
int sortMethodWithGCInfoByWeight(
MethodWithGCInfo
left,
MethodWithGCInfo
right)
178
methods.MergeSortAllowDuplicates((
MethodWithGCInfo
left,
MethodWithGCInfo
right) => ComputeHotColdRegion(left).CompareTo(ComputeHotColdRegion(right)));
180
int ComputeHotColdRegion(
MethodWithGCInfo
method)
187
methods.MergeSortAllowDuplicates((
MethodWithGCInfo
left,
MethodWithGCInfo
right) => (_profileData[left.Method] != null).CompareTo(_profileData[right.Method] != null));
191
methods.MergeSortAllowDuplicates((
MethodWithGCInfo
left,
MethodWithGCInfo
right) => ComputeHotWarmColdRegion(left).CompareTo(ComputeHotWarmColdRegion(right)));
193
int ComputeHotWarmColdRegion(
MethodWithGCInfo
method)
226
MethodWithGCInfo
temp = methods[i];
233
var nameMap = new Dictionary<string,
MethodWithGCInfo
>(methods.Count);
234
var order = new Dictionary<
MethodWithGCInfo
, int>(methods.Count);
249
|| !nameMap.TryGetValue(symbolName, out
MethodWithGCInfo
m))
256
methods.MergeSortAllowDuplicates((
MethodWithGCInfo
left,
MethodWithGCInfo
right) => order[left].CompareTo(order[right]));
266
private double MethodWithGCInfoToWeight(
MethodWithGCInfo
method)
350
private List<
MethodWithGCInfo
> PettisHansenSort(List<
MethodWithGCInfo
> methodsToPlace)
355
foreach (
MethodWithGCInfo
method in methodsToPlace)
363
foreach (
MethodWithGCInfo
method in methodsToPlace)
391
List<
MethodWithGCInfo
> result = new List<
MethodWithGCInfo
>(methodsToPlace.Count);