a long string of import order and namespace issues which is not over yet

This commit is contained in:
Torsten Ruger
2014-10-03 14:52:47 +03:00
parent 1347a85eb7
commit c5655b1059
11 changed files with 19 additions and 17 deletions

View File

@ -146,3 +146,4 @@ module Arm
end
end
end
require_relative "passes/call_implementation"

View File

@ -1,4 +1,4 @@
module Register
module Arm
# This implements call logic, which is simply like a c call (not send, that involves lookup and all sorts)
#
# The only target for a call is a CompiledMethod, so we just need to get the address for the code
@ -10,10 +10,10 @@ module Register
def run block
block.codes.dup.each do |code|
next unless code.is_a? Register::FunctionCall
call = RegisterMachine.instance.call( code.method )
call = ArmMachine.instance.call( code.method )
block.replace(code , call )
end
end
end
Virtual::BootSpace.space.add_pass_after CallImplementation , SetImplementation
Virtual::BootSpace.space.add_pass_after "Arm::CallImplementation" , "Register::SetImplementation"
end