2 instantiations of PInvokeInfo
ILCompiler.ReadyToRun (2)
PortableCallHelpers\InternalCallSignatureCollector.cs (1)
74_entrypoints.Add(new PInvokeInfo(name, "QCall", (EcmaMethod)method, wasmLinkage: false));
PortableCallHelpers\PInvokeCollector.cs (1)
177pinvokes.Add(new PInvokeInfo(metadata.Name, metadata.Module, method, wasmLinkage));
30 references to PInvokeInfo
ILCompiler.ReadyToRun (30)
PortableCallHelpers\InternalCallSignatureCollector.cs (2)
54private readonly List<PInvokeInfo> _entrypoints = []; 57public IReadOnlyList<PInvokeInfo> Entrypoints => _entrypoints;
PortableCallHelpers\PInvokeCollector.cs (4)
20: IEquatable<PInvokeInfo> 31public bool Equals(PInvokeInfo other) 34public override bool Equals(object obj) => Equals(obj as PInvokeInfo); 132public void CollectPInvokes(List<PInvokeInfo> pinvokes, List<PInvokeCallback> callbacks, Dictionary<string, MethodDesc> signatures, EcmaType type)
PortableCallHelpers\PInvokeTableGenerator.cs (22)
23public void EmitPInvokeTable(TextWriter w, TargetDetails target, ModuleDesc systemModule, IEnumerable<string> pinvokeModules, List<PInvokeInfo> pinvokes, IEnumerable<string> pinvokeModuleLists = null) 32var qcallImports = new List<PInvokeInfo>(); 33var linkedEntryPoints = new HashSet<PInvokeInfo>(); 35foreach (PInvokeInfo pinvoke in pinvokes) 80List<PInvokeInfo> emitted = pinvokes 104foreach (IGrouping<string, PInvokeInfo> group in pinvokesGroupedByEntryPoint) 106PInvokeInfo[] candidates = group.Distinct().ToArray(); 107PInvokeInfo first = candidates[0]; 119foreach (PInvokeInfo candidate in candidates) 126PInvokeInfo imported = candidates.FirstOrDefault(c => c.WasmLinkage); 133PInvokeInfo linkedEntryPoint = candidates.FirstOrDefault(c => !c.WasmLinkage); 169PInvokeInfo p = group.First(); 223static string ListImports(PInvokeInfo[] candidates) 227static string ListRefs(IGrouping<string, PInvokeInfo> group) 266private void EmitQCallTable(TextWriter w, TargetDetails target, List<PInvokeInfo> qcallImports) 268var identities = new Dictionary<string, PInvokeInfo>(StringComparer.Ordinal); 269foreach (PInvokeInfo entry in qcallImports) 271if (identities.TryGetValue(entry.EntryPoint, out PInvokeInfo previous) 299foreach (PInvokeInfo qcall in qcalls) 320foreach (PInvokeInfo qcall in qcalls) 568private string CEntryPoint(PInvokeInfo pinvoke) 580private string GenPInvokeDecl(PInvokeInfo pinvoke, string symbolName = null)
PortableCallHelpers\PortableCallHelpersGenerator.cs (2)
84List<PInvokeInfo> pinvokes = []; 127foreach (PInvokeInfo entry in internalCallCollector.Entrypoints)