clean and refactor

This commit is contained in:
Torsten Ruger
2017-01-16 17:44:34 +02:00
parent 091900ef1c
commit 7223ca9a1c
4 changed files with 15 additions and 7 deletions

View File

@ -41,7 +41,7 @@ module Register
end
def test_assign_call
Parfait.object_space.get_main.add_local(:r , :Integer)
Parfait.object_space.get_main.add_local(:r , :Object)
@input = s(:statements, s(:l_assignment, s(:local, :r), s(:call, :main, s(:arguments))))
@expect = [Label, SlotToReg, SlotToReg, RegToSlot, LoadConstant, RegToSlot ,
LoadConstant, SlotToReg, RegToSlot, LoadConstant, RegToSlot, RegisterTransfer ,