-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Refactor NativeAOT helpers to align with CoreCLR patterns #121158
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
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: jkotas <[email protected]>
…e.cs Co-authored-by: jkotas <[email protected]>
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Array.NativeAot.cs
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Array.NativeAot.cs
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/Array.NativeAot.cs
Outdated
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/TypedReference.cs
Outdated
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/TypedReference.cs
Outdated
Show resolved
Hide resolved
src/coreclr/tools/aot/ILCompiler.Compiler/Compiler/JitHelper.cs
Outdated
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs
Outdated
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs
Outdated
Show resolved
Hide resolved
…efAny, use GetCoreLibEntryPoint Co-authored-by: jkotas <[email protected]>
src/coreclr/System.Private.CoreLib/src/System/TypedReference.CoreCLR.cs
Outdated
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/TypedReference.cs
Outdated
Show resolved
Hide resolved
src/coreclr/nativeaot/System.Private.CoreLib/src/System/TypedReference.cs
Outdated
Show resolved
Hide resolved
|
Draft Pull Request was automatically closed for 30 days of inactivity. Please let us know if you'd like to reopen it. |
Co-authored-by: jkotas <[email protected]>
Co-authored-by: jkotas <[email protected]>
src/coreclr/nativeaot/System.Private.CoreLib/src/System/RuntimeTypeHandle.cs
Show resolved
Hide resolved
|
|
||
| // Implementation of CORINFO_HELP_TYPEHANDLE_TO_RUNTIMETYPE, CORINFO_HELP_GETSYNCFROMCLASSHANDLE | ||
| [MethodImpl(MethodImplOptions.AggressiveInlining)] | ||
| internal static unsafe RuntimeType GetTypeFromMethodTable(MethodTable* pMT) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot Add GetTypeFromMethodTable to src\coreclr\nativeaot\Test.CoreLib\src\System\Type,cs as well
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done in 5c9acff - added GetTypeFromMethodTable method to Test.CoreLib/src/System/Type.cs.
…m Test.CoreLib Co-authored-by: jkotas <[email protected]>
Co-authored-by: jkotas <[email protected]>
Move helper methods from
ArrayHelpers.csandTypedReferenceHelpers.csto their appropriate target types and other changes to make NativeAOT and non-NativeAOT structure to be more similar.