Fix interpreter and resolve method

Interpreter was not handling ssa correctly (ie overwriting)
Resolve was assuming wrong registers (also non ssa)
return value still broken
This commit is contained in:
2020-03-14 14:05:23 +02:00
parent 4db71c1c03
commit 5b0c1195e4
5 changed files with 53 additions and 49 deletions

View File

@ -57,7 +57,9 @@ module SlotMachine
if_zero ok_label
callable_method = callable_method[:next_callable].to_reg
next_method = callable_method[:next_callable].to_reg
callable_method << next_method
branch while_start_label
add_code exit_label