2 instantiations of MethodWithGCInfo
ILCompiler.ReadyToRun (2)
Compiler\DependencyAnalysis\ReadyToRunCodegenNodeFactory.cs (1)
501return new MethodWithGCInfo(key);
JitInterface\CorInfoImpl.ReadyToRun.cs (1)
819MethodWithGCInfo methodCodeNode = new MethodWithGCInfo(method)
171 references to MethodWithGCInfo
ILCompiler.ReadyToRun (171)
CodeGen\ReadyToRunObjectWriter.cs (1)
219foreach (MethodWithGCInfo methodNode in _nodeFactory.EnumerateCompiledMethods())
Compiler\DeferredWasmCallFinalizationPlan.cs (3)
128internal static DeferredWasmCallFinalizationPlan Create(List<MethodWithGCInfo> methodNodes, NodeFactory factory) 152MethodWithGCInfo target = relocation.Target switch 155MethodWithGCInfo method => method,
Compiler\DeferredWasmCallProcessor.cs (23)
62private readonly Dictionary<MethodWithGCInfo, MethodData> _pendingMethods = new(); 71internal Dictionary<MethodWithGCInfo, DelayLoadMethodImport> ActivationImports; 98if (dependency is MethodWithGCInfo method) 110MethodWithGCInfo method, OffsetMapping[] locations, NativeVarInfo[] variables, 111Dictionary<MethodWithGCInfo, DelayLoadMethodImport> activationImports) 160var methods = new List<MethodWithGCInfo>(); 161foreach (MethodWithGCInfo method in _pendingMethods.Keys) 174foreach (MethodWithGCInfo method in _pendingMethods.Keys) 189var methodNodes = new List<MethodWithGCInfo>(); 190var managedHelpers = new List<MethodWithGCInfo>(); 199MethodWithGCInfo methodNode = NodeFactory.CompiledMethodNode(method); 236var methodsToFinalize = new List<MethodWithGCInfo>(methodsAtLevel.Count); 239MethodWithGCInfo methodNode = NodeFactory.CompiledMethodNode(method); 252foreach (MethodWithGCInfo method in methodsToFinalize) 258foreach (MethodWithGCInfo method in methodsToFinalize) 278private void FinalizeMethod(MethodWithGCInfo method) 325List<MethodWithGCInfo> methods, 329var eagerMethodClosure = new HashSet<MethodWithGCInfo>(); 330var methodsToVisit = new Stack<MethodWithGCInfo>(); 335MethodWithGCInfo methodNode = NodeFactory.CompiledMethodNode(method); 351while (methodsToVisit.TryPop(out MethodWithGCInfo method)) 375if (method.GetDirectCallTarget(i) is MethodWithGCInfo target) 402foreach (MethodWithGCInfo method in methods)
Compiler\DeferredWasmCallRewriter.cs (9)
69MethodWithGCInfo method, OffsetMapping[] locations = null, NativeVarInfo[] variables = null, 70Dictionary<MethodWithGCInfo, DelayLoadMethodImport> activationImports = null) 88MethodWithGCInfo caller, DeferredWasmCallNode call, bool useDirectCall, bool isEager, 89Dictionary<MethodWithGCInfo, DelayLoadMethodImport> activationImports) 121MethodWithGCInfo method, OffsetMapping[] locations, NativeVarInfo[] variables, 122Dictionary<MethodWithGCInfo, DelayLoadMethodImport> activationImports) 154MethodWithGCInfo method, ObjectNode.ObjectData original, OffsetMapping[] locations, NativeVarInfo[] variables, 155Dictionary<MethodWithGCInfo, DelayLoadMethodImport> activationImports) 300private static int AddScratchLocal(MethodWithGCInfo method, byte[] code, int frameIndex, List<Edit> edits)
Compiler\DependencyAnalysis\ReadyToRun\DebugInfoTableNode.cs (1)
85foreach (MethodWithGCInfo method in factory.EnumerateCompiledMethods())
Compiler\DependencyAnalysis\ReadyToRun\DeferredWasmCallNode.cs (1)
15internal MethodWithGCInfo Target => fallback.MethodCodeNode;
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 (6)
179internal MethodWithGCInfo GetDirectCallTarget(int relocationIndex) 184relocation.Target is MethodWithGCInfo target && target != this && relocationIndex > 0) 267if (GetDirectCallTarget(i) is MethodWithGCInfo target) 294if (GetDirectCallTarget(i) is MethodWithGCInfo target) 661MethodWithGCInfo 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 (3)
14private readonly MethodWithGCInfo _method; 15internal MethodWithGCInfo Method => _method; 17public 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)
144private NodeCache<MethodDesc, MethodWithGCInfo> _localMethodCache; 146public MethodWithGCInfo CompiledMethodNode(MethodDesc method) 499_localMethodCache = new NodeCache<MethodDesc, MethodWithGCInfo>(key => 691MethodWithGCInfo methodWithGCInfo = null; 727public IEnumerable<MethodWithGCInfo> EnumerateCompiledMethods() 732public IEnumerable<MethodWithGCInfo> EnumerateCompiledMethods(EcmaModule moduleToEnumerate, CompiledMethodCategory methodCategory) 737MethodWithGCInfo methodCodeNode = methodNode as MethodWithGCInfo; 770foreach (MethodWithGCInfo compiled in EnumerateCompiledMethods()) 1555private NodeCache<MethodWithGCInfo, WasmMethodRelativeVirtualIPNode> _wasmMethodRelativeVirtualIPs; 1556private NodeCache<MethodWithGCInfo, WasmMethodFrameIdentityNode> _wasmMethodFrameIdentities; 1609internal WasmMethodRelativeVirtualIPNode WasmMethodRelativeVirtualIP(MethodWithGCInfo method) 1614internal WasmMethodFrameIdentityNode WasmMethodFrameIdentity(MethodWithGCInfo method)
Compiler\DependencyAnalysis\ReadyToRunSymbolNodeFactory.cs (3)
109_resumptionStubEntryPointFixups = new NodeCache<MethodWithGCInfo, Import>(key => 352private NodeCache<MethodWithGCInfo, Import> _resumptionStubEntryPointFixups; 826internal 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 (22)
264MethodWithGCInfo methodEntryPoint = _factory.CompiledMethodNode(canonMethod); 315private readonly HashSet<MethodWithGCInfo> _methodsToRecompile = new HashSet<MethodWithGCInfo>(); 730public void PrepareForCompilationRetry(MethodWithGCInfo methodToBeRecompiled, IEnumerable<MethodDesc> methodsThatNeedILBodies) 776if (dependency is MethodWithGCInfo methodCodeNodeNeedingCode) 813List<MethodWithGCInfo> managedHelpers = new List<MethodWithGCInfo>(); 814HashSet<MethodWithGCInfo> seenManagedHelpers = new HashSet<MethodWithGCInfo>(); 818if (dependency is MethodWithGCInfo { IsJitHelper: true } managedHelper) 902MethodWithGCInfo[] methodsToRecompile = new MethodWithGCInfo[_methodsToRecompile.Count]; 938internal void EnsureDirectManagedHelpersInitialized(List<MethodWithGCInfo> managedHelpers) 947private void InitializeDirectManagedHelpers(List<MethodWithGCInfo> managedHelpers) 975foreach (MethodWithGCInfo managedHelper in managedHelpers) 1053List<MethodWithGCInfo> managedHelpers, 1057foreach (MethodWithGCInfo managedHelper in managedHelpers) 1071internal void ValidateManagedHelpers(List<MethodWithGCInfo> managedHelpers) 1073foreach (MethodWithGCInfo managedHelper in managedHelpers) 1085private static bool HasInstructionSetSupportFixup(MethodWithGCInfo managedHelper) 1146MethodWithGCInfo methodCodeNodeNeedingCode = dependency as MethodWithGCInfo;
JitInterface\CorInfoImpl.ReadyToRun.cs (10)
492private MethodWithGCInfo _methodCodeNode; 505private Dictionary<MethodWithGCInfo, DelayLoadMethodImport> _deferredWasmActivationImports; 531private void AddResumptionStubFixup(MethodWithGCInfo compiledStubNode) 812public void CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logger) 819MethodWithGCInfo methodCodeNode = new MethodWithGCInfo(method) 827private ManagedHelperProbeResult CompileMethod(MethodWithGCInfo methodCodeNodeNeedingCode, Logger logger, bool publishCode) 2803MethodWithGCInfo targetCodeNode = _compilation.NodeFactory.CompiledMethodNode(compilableTarget); 2828_deferredWasmActivationImports ??= new Dictionary<MethodWithGCInfo, DelayLoadMethodImport>(); 3517if (HandleToObject(target) is not MethodWithGCInfo targetMethodNode) 3552MethodWithGCInfo method = targetObject is DeferredWasmCallNode call
parent\parent\Common\Compiler\ObjectWriter\WebCilObjectWriter.cs (1)
262foreach (ILCompiler.DependencyAnalysis.ReadyToRun.MethodWithGCInfo method in _nodeFactory.EnumerateCompiledMethods())