remove singleton in arm machine and use class methods

This commit is contained in:
Torsten Ruger
2014-10-04 17:34:51 +03:00
parent d7d2622d7f
commit 7968cadaf9
3 changed files with 11 additions and 44 deletions

View File

@ -10,7 +10,7 @@ module Arm
def run block
block.codes.dup.each do |code|
next unless code.is_a? Register::FunctionCall
call = ArmMachine.instance.call( code.method )
call = ArmMachine.call( code.method )
block.replace(code , call )
end
end