remove legacy :int type
This commit is contained in:
parent
a3585870b9
commit
7d29a85187
@ -10,8 +10,6 @@ module Register
|
|||||||
raise "wrong type for register init #{r}" unless r.is_a? Symbol
|
raise "wrong type for register init #{r}" unless r.is_a? Symbol
|
||||||
raise "double r #{r}" if r.to_s[0,1] == "rr"
|
raise "double r #{r}" if r.to_s[0,1] == "rr"
|
||||||
raise "not reg #{r}" unless self.class.look_like_reg r
|
raise "not reg #{r}" unless self.class.look_like_reg r
|
||||||
type = :Integer if type == :int
|
|
||||||
raise "Legacy type error, should be class name not ref" if (type == :ref)
|
|
||||||
@type = type
|
@type = type
|
||||||
@symbol = r
|
@symbol = r
|
||||||
@value = value
|
@value = value
|
||||||
|
@ -32,13 +32,13 @@ module Register
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_field_int
|
def test_field_int
|
||||||
add_space_field(:bro,:int)
|
add_space_field(:bro,:Integer)
|
||||||
@input = s(:operator_value, :+, s(:field_access,s(:receiver, s(:name, :self)), s(:field, s(:name, :bro))), s(:int, 3))
|
@input = s(:operator_value, :+, s(:field_access,s(:receiver, s(:name, :self)), s(:field, s(:name, :bro))), s(:int, 3))
|
||||||
check
|
check
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_int_field
|
def test_int_field
|
||||||
add_space_field(:bro,:int)
|
add_space_field(:bro,:Integer)
|
||||||
@input = s(:operator_value, :+, s(:int, 3), s(:field_access, s(:receiver, s(:name, :self)), s(:field,s(:name, :bro))))
|
@input = s(:operator_value, :+, s(:int, 3), s(:field_access, s(:receiver, s(:name, :self)), s(:field,s(:name, :bro))))
|
||||||
check
|
check
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user