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

@ -29,7 +29,7 @@ module Mom
end
def to_risc(compiler)
transfer = SlotLoad.new([:message , :next_message , :receiver] , @receiver).to_risc(compiler)
transfer = SlotLoad.new([:message , :next_message , :receiver] , @receiver, self).to_risc(compiler)
compiler.reset_regs
@arguments.each do |arg|
transfer << arg.to_risc(compiler)