Convert SimpleCall to new regs

Also fix bug in RegsiterValue/Slot with chain, where logic was dodgy and compiler not set
This commit is contained in:
2020-03-01 23:38:23 +02:00
parent 4b303977a7
commit ff49ff50c0
8 changed files with 54 additions and 23 deletions

View File

@ -64,12 +64,12 @@ module Risc
assert_equal @r0 , instr.register
assert_equal 1 , instr.index
end
def est_slot_to_reg
def test_slot_to_reg
instr = @r0 << @r2[:next_object]
assert_equal SlotToReg , instr.class
assert_equal @r0 , instr.register
assert_equal :message , instr.register.symbol
assert_equal 2 , instr.index
assert_equal @r1 , instr.array
assert instr.array.is_object?
end
def test_reg_to_byte
instr = @r1[1] <= @r0