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:
@ -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 )
|
||||
|
@ -33,16 +33,16 @@ module Risc
|
||||
end
|
||||
|
||||
def test_load_space
|
||||
assert_load( instruction(4) , Parfait::Space )
|
||||
assert_load( instruction(4) , Parfait::Factory )
|
||||
end
|
||||
def test_get_next
|
||||
assert_slot_to_reg( instruction( 5 ) , :r3 , 4 , :r4 )
|
||||
assert_slot_to_reg( instruction( 5 ) , :r3 , 2 , :r4 )
|
||||
end
|
||||
def test_save_next
|
||||
assert_reg_to_slot( instruction( 6 ) , :r4 , :r0 , 1 )
|
||||
end
|
||||
def test_save_this
|
||||
assert_reg_to_slot( instruction( 7 ) , :r0 , :r3 , 4 )
|
||||
assert_reg_to_slot( instruction( 7 ) , :r0 , :r3 , 2 )
|
||||
end
|
||||
|
||||
def test_save_addr
|
||||
|
Reference in New Issue
Block a user