Bugfix: has-metadata? was corrupting registers

Seems uneconomic to write tests for stuff like this. Assembly is just not
the right layer to try to come up with a general solution or process. Keep
running your code and wait to find signs of breakage.
This commit is contained in:
Kartik Agaram 2019-02-01 23:52:36 -08:00
parent 77aa333c3c
commit 4cb7d1fb77
2 changed files with 2 additions and 0 deletions

Binary file not shown.

View File

@ -431,6 +431,8 @@ $has-metadata?:true:
$has-metadata?:false:
b8/copy-to-EAX 0/imm32/false
$has-metadata?:end:
# . reclaim locals
81 0/subop/add 3/mod/direct 4/rm32/ESP . . . . . 8/imm32 # add to ESP
# . restore registers
5f/pop-to-EDI
5e/pop-to-ESI