remove a layer of indirection
This commit is contained in:
parent
741c55cba3
commit
587fd56300
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user