-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Share some array code between CoreCLR and NativeAOT #116903
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
Merged
Merged
Changes from 10 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
dfc09e0
Adapt CopyImpl and CanAssignArrayType to NativeAot
huoyaoyuan 3c031da
Adapt CopySlow paths
huoyaoyuan 8af6824
Cleanup old CopyImpl
huoyaoyuan ae4a0d5
Add test for primitive widen with enum
huoyaoyuan ce29d08
Cleanup unreachable path
huoyaoyuan 97dc439
Fold identical ConstrainedCopy
huoyaoyuan c9e0ae2
Share Array.Clear
huoyaoyuan 2488fe9
Share GetFlattenedIndex
huoyaoyuan b65a093
Reduce overhead of GetLength/LowerBound/UpperBound
huoyaoyuan e975e11
Fix mono build
huoyaoyuan e7fc110
Fix direction of CanPrimitiveWiden
huoyaoyuan e366c6a
Share GetLength/GetUpperBound/GetLowerBound
huoyaoyuan bc584d1
Cleanup IsSzArray
huoyaoyuan c409556
Encounter for pointer in IsSystemObject
huoyaoyuan 83b6ea8
Fix unit tests
huoyaoyuan b3c5374
Merge branch 'main' into array-shared
huoyaoyuan 11da64e
Merge branch 'main' into array-shared
huoyaoyuan 072519a
Cleanup exception throwing.
huoyaoyuan 9c6ecaa
Invert condition for pointer check
huoyaoyuan 0766d2c
Remove redundant throwing condition
huoyaoyuan 9344eec
Fix nullability
huoyaoyuan fb403f4
Reduce overhead of ArrayRank
huoyaoyuan e7e11b9
Cleanup
huoyaoyuan 3e60780
Add test for copying value types
huoyaoyuan 36cf203
Revert "Remove redundant throwing condition"
huoyaoyuan 3370988
Add back overflow check
huoyaoyuan 1c0901a
Update array type checking
huoyaoyuan 6044d8a
Simplify bound checking
huoyaoyuan 1b9a1d8
Cleanup CER comment
huoyaoyuan d8ce97e
Add test for nullable case
huoyaoyuan 5fa7174
Handle nullable conversion
huoyaoyuan 67f6774
Move comment
huoyaoyuan 11dcdca
Move copy cases to shared
huoyaoyuan 41d3318
AsMethodTable() already asserts
huoyaoyuan 05f246e
Delete misaligned comment
huoyaoyuan b40e433
Fix case ordering
huoyaoyuan b7d184f
Avoid multiplication by non-constant
huoyaoyuan baf176f
Reorder PrimitiveWiden
huoyaoyuan 88d2cf2
Align asserts
huoyaoyuan 5e65943
Fix element type
huoyaoyuan 34cf416
Apply suggestions from code review
jkotas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.