-
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.
[interp] handle box + brtrue/brfalse and box+isinst+unbox.any pattern…
…s up front (#103052) * [interp] handle box + brtrue/brfalse pattern for byreflike types In cases where we don't do cprop and deadce (for example if `mono_interp_opt` is 0 because we're debugging) don't emit a box_vt opcode before a branch. Instead just emit a constant true Fixes #102988 * Revert "Revert uses of Unsafe.BitCast with spans to unblock mono (#102998)" This reverts commit c286a8e. Reverts #102998 * remove the box byreflike retry code we handle box byreflike code patterns directly now * handle box;isinst;{brtrue|brfalse|unbox.any} IL patterns * Add test locking down mismatched box;isinst;unbox.any pattern * remove the mismatch case in the interp. throw IPE at execution time * Update src/tests/Loader/classloader/generics/ByRefLike/Validate.cs Co-authored-by: Aaron Robinson <[email protected]> --------- Co-authored-by: Aaron Robinson <[email protected]>
- Loading branch information
1 parent
b5948bf
commit f47b491
Showing
13 changed files
with
217 additions
and
76 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.