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

@ -24,11 +24,11 @@ module Mom
# Move method name, frame and arguemnt types from the method to the neext_message
# Assumes the message is ready, see class description
def to_risc(compiler)
name_move = SlotLoad.new( [:message , :next_message,:name] , [method , :name])
name_move = SlotLoad.new( [:message , :next_message,:name] , [method , :name],self)
moves = name_move.to_risc(compiler)
args_move = SlotLoad.new( [:message , :next_message, :arguments,:type] , [method , :arguments, :type])
args_move = SlotLoad.new( [:message , :next_message, :arguments,:type] , [method , :arguments, :type],self)
moves << args_move.to_risc(compiler)
type_move = SlotLoad.new( [:message , :next_message, :frame,:type] , [method , :frame,:type])
type_move = SlotLoad.new( [:message , :next_message, :frame,:type] , [method , :frame,:type],self)
moves << type_move.to_risc(compiler)
end