repurpose RValue as RegisterSlot

with the idea of the better name came also the one about not needing the builder anymore
This commit is contained in:
2020-03-01 10:22:24 +02:00
parent 088017bc05
commit 95f3eec043
9 changed files with 143 additions and 47 deletions

View File

@ -50,7 +50,7 @@ module Risc
raise "Must create (with ! or ?) before using #{name}#{last_char}"
end
type = infer_type(name )
reg = @compiler.use_reg( type.object_class.name ).set_builder(self)
reg = RegisterValue.new( name.to_sym , type.object_class.name ).set_builder(self)
end
@names[name] = reg
reg