remove MethodCall and thus all virtual instructions

This commit is contained in:
Torsten Ruger
2015-10-18 19:27:46 +03:00
parent 15b570f5cf
commit d767caf479
20 changed files with 24 additions and 72 deletions

View File

@ -13,6 +13,12 @@ module Register
def to_s
"FunctionCall: #{method.name}"
end
end
def self.issue_call caller , callee
# move the current new_message to message
caller.source.add_code RegisterTransfer.new(caller, Register.new_message_reg , Register.message_reg )
# do the register call
caller.source.add_code FunctionCall.new( caller , callee )
end
end