-
Notifications
You must be signed in to change notification settings - Fork 5k
Convert some more array FCalls to managed #102739
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 all commits
Commits
Show all changes
53 commits
Select commit
Hold shift + click to select a range
566b15e
Implement IsSimpleCopy and CanAssignArrayType in managed code
huoyaoyuan 8a592b9
Fold IsSimpleCopy back to CanAssignArrayType
huoyaoyuan 0dce3d4
Delete FCall and QCall definitions for copy
huoyaoyuan d29e5d8
Convert InternalSetValue to managed
huoyaoyuan 5dd0e3c
Setup FCalls
huoyaoyuan 527021c
Remove FCall for GetCorElementTypeOfElementType
huoyaoyuan e7d843a
Complete TryUnBox
huoyaoyuan 2bb5fe7
Fix FCall definition
huoyaoyuan f7da172
Implement InitializeArray in managed
huoyaoyuan 0924555
Implement GetSpanDataFrom in managed
huoyaoyuan dc85381
Remove FCall definition
huoyaoyuan f99c553
Fix RVA field address
huoyaoyuan c5e6cc4
Fix RVA assert
huoyaoyuan 470b86f
Do not use hydrated RtFieldInfo
huoyaoyuan c7821e6
Use QCall for LoadSize
huoyaoyuan 5225203
Fix CanAssignArrayType condition
huoyaoyuan 07293e3
Fix compilation
huoyaoyuan 5da88c3
Simplify AssignType enum
huoyaoyuan 5222bca
Fix I and U in CanPrimitiveWiden
huoyaoyuan 335b2fb
CanCastTo should be QCall
huoyaoyuan 93ec9d8
Remove ThrowHelper usages that not in hot path
huoyaoyuan c3f5097
Merge branch 'main' into array-fcall
huoyaoyuan 481e4d4
Revert the known broken InternalSetValue
huoyaoyuan a266a30
Revert "Revert the known broken InternalSetValue"
huoyaoyuan b8e4584
Fix heap overwrite
huoyaoyuan 5465a97
Add disabled test for RVA field reflection
huoyaoyuan 4ce4f51
Push back changes around IsSimpleCopy and CanAssignArrayType
huoyaoyuan 30b7d8f
Move PrimitiveWiden to InvokeUtils
huoyaoyuan 8a9c5bc
Merge coreclr specific InvokeUtils
huoyaoyuan f95fa34
Revert "Merge coreclr specific InvokeUtils"
huoyaoyuan ebfd224
Move InvokeUtils to shared
huoyaoyuan d9205c6
Apply suggestions from code review
huoyaoyuan 7eef724
Merge branch 'main' into array-fcall
huoyaoyuan 8cfb58f
Fix trailing whitespace
huoyaoyuan fbb9d71
Reduce QCalls
huoyaoyuan 324df76
Reduce CorElementType overhead
huoyaoyuan 089ae12
Separate RVA reflection change out
huoyaoyuan a5e7441
Revert GetCorElementTypeOfElementType
huoyaoyuan 5552d63
Change the MethodTable FCall to be optimal for primitive and share wi…
huoyaoyuan 133cd8a
Return ref from GetSpanDataFrom
huoyaoyuan e17bf0e
Handle enum conversion to underlying type
huoyaoyuan dd1e2dd
Update exception message
huoyaoyuan 32b8789
Add KeepAlive
huoyaoyuan 582eaf1
Remove unnecessary qcall handle
huoyaoyuan 1836ae5
Fix ref src
huoyaoyuan cb6aa00
Update FCall name and assert
huoyaoyuan 49cf866
Remove unused changes
huoyaoyuan 7a0c398
Use void* for address
huoyaoyuan db677ad
Apply suggestions from code review
huoyaoyuan 353715e
Remove unused enum FCall
huoyaoyuan 8fb1c96
Use sizeof
huoyaoyuan 26d4c80
Add some comment
huoyaoyuan 5f7263f
Add comment to lifetime
huoyaoyuan 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
250 changes: 102 additions & 148 deletions
250
src/coreclr/System.Private.CoreLib/src/System/Array.CoreCLR.cs
Large diffs are not rendered by default.
Oops, something went wrong.
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
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.