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:
@ -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
|
||||
|
Reference in New Issue
Block a user