remove a layer of indirection

This commit is contained in:
Torsten Ruger 2014-05-21 21:15:23 +03:00
parent 741c55cba3
commit 587fd56300
2 changed files with 4 additions and 12 deletions

View File

@ -25,16 +25,6 @@ module Arm
result
end
def integer_load block , to , from
block << mov( to , from )
to
end
def integer_move block , to , from
block << mov( to , from )
to
end
def function_call into , call
raise "Not CallSite #{call.inspect}" unless call.is_a? Vm::CallSite
raise "Not linked #{call.inspect}" unless call.function

View File

@ -94,11 +94,13 @@ module Vm
end
def load block , right
RegisterMachine.instance.integer_load block , self , right
block.mov( self , right )
self
end
def move block , right
RegisterMachine.instance.integer_move block , self , right
block.mov( self , right )
self
end
end