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

@ -24,11 +24,11 @@ module Risc
end
def test_load_space
space = @produced.next(1)
assert_load( space , Parfait::Space , :r2 )
assert_load( space , Parfait::Factory , :r2 )
end
def test_load_first_message #from space (ie r2)
sl = @produced.next( 2 )
assert_slot_to_reg( sl , :r2 , 4 , :r3 )
assert_slot_to_reg( sl , :r2 , 2 , :r3 )
end
def test_get_next_next #reduce onto itself
sl = @produced.next( 3 )
@ -36,7 +36,7 @@ module Risc
end
def test_store_next_next_in_space
sl = @produced.next( 4 )
assert_reg_to_slot( sl , :r4 , :r2 , 4 )
assert_reg_to_slot( sl , :r4 , :r2 , 2 )
end
def test_store_message_in_current
sl = @produced.next( 5 )