simple call implementation
This commit is contained in:
parent
a3a55aec08
commit
7fd9ff44db
@ -10,11 +10,8 @@ module Register
|
|||||||
def run block
|
def run block
|
||||||
block.codes.dup.each do |code|
|
block.codes.dup.each do |code|
|
||||||
next unless code.is_a? Virtual::FunctionCall
|
next unless code.is_a? Virtual::FunctionCall
|
||||||
to = RegisterReference.new(:r0)
|
call = RegisterMachine.instance.call( code.method )
|
||||||
tmp = RegisterReference.new(:r5)
|
block.replace(code , [call] )
|
||||||
# move = RegisterMachine.instance.ldr( to , tmp , code.to.index )
|
|
||||||
# block.replace(code , [move] )
|
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user