add method to risc function call

just so we still know at compile time
This commit is contained in:
Torsten Ruger
2018-03-21 19:05:53 +05:30
parent a9196e9cd6
commit b5ef929c9c
3 changed files with 7 additions and 6 deletions

View File

@ -4,19 +4,20 @@ module Risc
# assembly takes care of the rest (ie getting the address)
class FunctionCall < Instruction
def initialize( source , method )
def initialize( source , method , register)
super(source)
@method = method
@register = register
end
attr_reader :method
attr_reader :method , :register
def to_s
"FunctionCall: #{method.name}"
end
end
def self.function_call( source , method )
Risc::FunctionCall.new( source , method )
def self.function_call( source , method , register)
Risc::FunctionCall.new( source , method , register)
end
def self.issue_call( compiler , callee )