-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[mono][interp] Attempt to devirtualize call if we have type informati…
…on about `this` (#85528) * [mono][interp] Preserve klass information when generating MINT_CKNULL This information will be useful to later devirtualize the call * [mono][interp] Add more specific type information for EqualityComparer.Default * [mono][interp] Devirtualize calls if we can find a final implementation Remove asserts from mono_class_get_virtual_method so we can check a virtual method on any klass, returning NULL if no implementation is found. * [mono][interp] Optimize out null check on ldloca * [mono][interp] Constant fold unop conditionals applied to non null values * [mono][interp] Optimize out unused MINT_BOX * [mono] Remove duplicated code between interp and jit * [mono][metadata] Allow method to be called for abstract classes It will just return null if a concrete implementation wasn't found. * [mono][interp] Don't populate wrong type information into the stack state * [mono][interp] Don't devirtualize final methods They can still be overriden * [mono][interp] Ensure class is initialized before getting aot method
- Loading branch information
Showing
8 changed files
with
172 additions
and
93 deletions.
There are no files selected for viewing
This file contains 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 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 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 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 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 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.