more splitting of slot code

now constants, still wip
This commit is contained in:
2020-02-10 18:58:48 +07:00
parent 24d7fe25da
commit 1da5cd16c3
8 changed files with 62 additions and 33 deletions

View File

@ -23,9 +23,6 @@ module Sol
def test_receiver_move_class
assert_equal ArgumentTransfer, @ins.next(1).class
end
def test_receiver_move
assert_equal SlotDefinition, @ins.next.receiver.class
end
def test_receiver
type , value = receiver
assert_equal type, @ins.next.receiver.known_object.class

View File

@ -13,6 +13,9 @@ module Sol
def test_call_has_right_method
assert_equal :div4, @ins.next(2).method.name
end
def test_receiver_move
assert_equal ConstantDefinition, @ins.next.receiver.class
end
end
end

View File

@ -23,5 +23,9 @@ module Sol
check_array [MessageSetup,ArgumentTransfer,SimpleCall, SlotLoad, ReturnJump,
Label, ReturnSequence , Label] , @ins
end
def test_receiver_move
assert_equal ConstantDefinition, @ins.next.receiver.class
end
end
end