allow setting the source for slot loads

so we can track more exactly which instruction created the risc
This commit is contained in:
Torsten Ruger
2018-03-22 18:45:03 +02:00
parent 9932d0bf33
commit 6e901e1718
5 changed files with 15 additions and 13 deletions

View File

@ -22,7 +22,7 @@ module Mom
def to_risc(compiler)
jump_address = compiler.use_reg(:int)
return_label = Risc::Label.new(self,"continue_#{object_id}")
save_return = SlotLoad.new([:message,:next_message,:return_address],[return_label])
save_return = SlotLoad.new([:message,:next_message,:return_address],[return_label],self)
moves = save_return.to_risc(compiler)
moves << Risc.slot_to_reg(self, :message , :next_message , Risc.message_reg)
moves << Risc.load_constant(self , method.binary , jump_address)