-
Notifications
You must be signed in to change notification settings - Fork 5.3k
JIT: Devirtualize generic virtual methods #122023
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
Open
hez2010
wants to merge
24
commits into
dotnet:main
Choose a base branch
from
hez2010:gvm-devirt-2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+169
−65
Open
Changes from 11 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
fbff8d6
Rename wasArrayInterfaceDevirt to needsMethodContext
hez2010 729b269
Devirtualize generic virtual methods
hez2010 5c15b23
Disable GVM devirt for AOT
hez2010 6e678a5
Unblock late devirt as well
hez2010 c488b84
Set single-def
hez2010 0ca8b93
Address feedbacks
hez2010 b396d26
Merge branch 'main' into gvm-devirt-2
hez2010 0ac9d6d
Meh
hez2010 8976d4a
JIT format
hez2010 8d0845e
JIT format again
hez2010 1d389f1
Check methHndArg
hez2010 217c9f2
Rework how inst param being embedded
hez2010 4b64c2e
Bail out GVM devirt in managed type system instead
hez2010 e8668a1
Remove the out-dated comments
hez2010 951c4ea
JIT format
hez2010 a1d605f
generic context is not always needed
hez2010 a941aec
Check isInstantiatingStub for the necessity of generic method context
hez2010 9dd04f0
Minor refactor
hez2010 e84df69
Use the wrapper entrypoint instead of the instantiating stub
hez2010 17392c0
JIT format
hez2010 9847c97
Always use instantiatingStub
hez2010 7896ef5
Properly handle shared generics on both class and method
hez2010 905b11d
Update comments
hez2010 ff217cc
Merge branch 'main' into gvm-devirt-2
hez2010 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
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
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.
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.
Can you explain this behavior?
It mixes syntax and semantics. Nothing guarantees that a runtime lookup appears as a
GT_RUNTIMELOOKUPnode. It could have been stored to a local and a number of other things.This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as outdated.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
Pushed a new commit including comments to clarify this behavior. Also updated the description of the PR.