change to_risc and builtin code according to last commit

Wherever space was loaded to get to the next_message
we now load the Message factory.
Otherwise much the same, only the attribute is next_object, not next_message
The binary is growing with 1k objects per factory, so i had to fix (hack) arm to handle bigger constants
close #14
This commit is contained in:
Torsten Ruger
2018-09-01 11:28:53 +03:00
parent d964e9ea9d
commit f798173a09
13 changed files with 39 additions and 37 deletions

View File

@ -50,13 +50,13 @@ module Risc
end
def test_returns_slot
r2 = RegisterValue.new(:r2 , :Message).set_builder( @builder )
@builder.build{ r2 << space![:next_message] }
@builder.build{ r2 << factory![:next_object] }
assert_equal SlotToReg , built.class
assert_equal :r1 , built.array.symbol
end
def test_returns_slot_reverse
r2 = RegisterValue.new(:r2 , :Message).set_builder( @builder )
@builder.build{ r2 << space![:next_message] }
@builder.build{ r2 << factory![:next_object] }
assert_equal SlotToReg , built.class
assert_equal :r1 , built.array.symbol
end