Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Spesh] Move annotations to istrue when split from if_o
In commit c7774e3 we unconditionally split if_o/unless_o into istrue + if_i/unless_i, which fixed rakudo issue #1483. However, the annotations that would indicate the start of the if_o instruction, would now inadvertently be placed in the middle of the split instruction (between istrue and if_i). This would then presumably fail, e.g. when the istrue would throw an exception (frame handler would exclude it) or the exception would be 'caught' between them (FH_GOTO would point between istrue/if_i rather than before). I couldn't find any case where the frame handler annotation should be on the if_i rather than the istrue, so that's what I changed to do. I believe this fixes MoarVM issue #804.
- Loading branch information
Showing
2 changed files
with
14 additions
and
11 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