more splitting of slot code
now constants, still wip
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user