Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 5.6k
Add support for pre-compiling interop type maps in crossgen2#124352
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
d96073bf3dd68e3f3b5eb9de4cad89824c866ea3947b641456a19928e6ffdebc593f18bd71ab48cf2780585b5599a46b19ea59e9686e9eb3899e373d4d05da557ae0ed54e1ff83ab74e5a78bbc106fd56ab3e562fc35a0d997bf893e76362462d3ca80e635dfb5282f9bc4f7c0581bfca9c138f86192e082377e5File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| using Internal.NativeFormat; | ||
| using Internal.TypeSystem; | ||
| namespace ILCompiler.DependencyAnalysis | ||
| { | ||
| public interface INativeFormatTypeReferenceProvider | ||
| { | ||
| internal Vertex EncodeReferenceToType(NativeWriter writer, TypeDesc type); | ||
| internal Vertex EncodeReferenceToMethod(NativeWriter writer, MethodDesc method); | ||
| } | ||
jkoritzinsky marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,49 @@ | ||
| // Licensed to the .NET Foundation under one or more agreements. | ||
| // The .NET Foundation licenses this file to you under the MIT license. | ||
| using System; | ||
| using System.Collections; | ||
| using System.Collections.Generic; | ||
| using System.Collections.ObjectModel; | ||
| using System.Diagnostics; | ||
| using System.Reflection.Metadata; | ||
| using ILCompiler.DependencyAnalysis; | ||
| #if READYTORUN | ||
| using ILCompiler.DependencyAnalysis.ReadyToRun; | ||
| #endif | ||
| using ILCompiler.DependencyAnalysisFramework; | ||
| using Internal.Runtime; | ||
| using Internal.TypeSystem; | ||
| namespace ILCompiler | ||
| { | ||
| /// <summary> | ||
| /// This class is responsible for managing emitted data for type maps. | ||
| /// </summary> | ||
| public abstract class TypeMapManager : ICompilationRootProvider | ||
| { | ||
| public virtual void AttachToDependencyGraph(DependencyAnalyzerBase<NodeFactory> graph) | ||
| { | ||
| } | ||
| internal abstract IEnumerable<IExternalTypeMapNode> GetExternalTypeMaps(); | ||
| internal abstract IEnumerable<IProxyTypeMapNode> GetProxyTypeMaps(); | ||
| public abstract void AddCompilationRoots(IRootingServiceProvider rootProvider); | ||
| protected abstract bool IsEmpty { get; } | ||
| public virtual void AddToReadyToRunHeader(ReadyToRunHeaderNode header, NodeFactory nodeFactory, INativeFormatTypeReferenceProvider commonFixupsTableNode) | ||
| { | ||
| if (IsEmpty) | ||
| { | ||
| return; // No type maps to emit | ||
| } | ||
| header.Add(ReadyToRunSectionType.ExternalTypeMaps, new ExternalTypeMapObjectNode(this, commonFixupsTableNode)); | ||
| header.Add(ReadyToRunSectionType.ProxyTypeMaps, new ProxyTypeMapObjectNode(this, commonFixupsTableNode)); | ||
jkoritzinsky marked this conversation as resolved.
Uh oh!There was an error while loading. Please reload this page. | ||
| } | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.