use frame type rather than the indexed construct
This commit is contained in:
@ -25,7 +25,7 @@ module Typed
|
||||
# TODO, check type @method.locals[index].type
|
||||
named_list = use_reg(:NamedList)
|
||||
add_code Register.get_slot(statement , :message , :named_list , named_list )
|
||||
return Register.set_slot(statement , value , named_list , Parfait::NamedList.get_indexed(index) )
|
||||
return Register.set_slot(statement , value , named_list , index )
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -29,7 +29,7 @@ module Typed
|
||||
named_list = use_reg :NamedList
|
||||
add_code Register.get_slot(statement , :message , :named_list , named_list )
|
||||
ret = use_reg @method.locals_type( index )
|
||||
add_code Register.get_slot(statement , named_list , Parfait::NamedList.get_indexed(index), ret )
|
||||
add_code Register.get_slot(statement , named_list , index, ret )
|
||||
return ret
|
||||
end
|
||||
|
||||
|
@ -23,8 +23,5 @@ module Parfait
|
||||
class NamedList < Object
|
||||
attribute :next_list
|
||||
|
||||
include Indexed
|
||||
self.offset(2) # 1 == the next_list attributes above + type. (indexed_length gets added)
|
||||
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user