fixing pass order by require order (easier to track)
This commit is contained in:
parent
8f0fb7e4e2
commit
d38097aea4
@ -7,8 +7,7 @@ module Arm
|
||||
# Value functions are mapped to machines by concatenating the values class name + the methd name
|
||||
# Example: IntegerValue.plus( value ) -> Machine.signed_plus (value )
|
||||
|
||||
# Also, shortcuts are created to easily instantiate Instruction objects. The "standard" set of instructions
|
||||
# (arm-influenced) provides for normal operations on a register machine,
|
||||
# Also, shortcuts are created to easily instantiate Instruction objects.
|
||||
# Example: pop -> StackInstruction.new( {:opcode => :pop}.merge(options) )
|
||||
# Instructions work with options, so you can pass anything in, and the only thing the functions does
|
||||
# is save you typing the clazz.new. It passes the function name as the :opcode
|
||||
@ -114,3 +113,9 @@ module Arm
|
||||
end
|
||||
Arm::ArmMachine.init
|
||||
require_relative "passes/call_implementation"
|
||||
require_relative "passes/save_implementation"
|
||||
require_relative "passes/transfer_implementation"
|
||||
require_relative "passes/get_implementation"
|
||||
require_relative "passes/set_implementation"
|
||||
require_relative "passes/return_implementation"
|
||||
require_relative "passes/constant_implementation"
|
||||
|
@ -18,5 +18,5 @@ module Register
|
||||
end
|
||||
end
|
||||
end
|
||||
Virtual::BootSpace.space.add_pass_after "Register::ReturnImplementation" , "Virtual::GetImplementation"
|
||||
Virtual::BootSpace.space.add_pass "Register::ReturnImplementation"
|
||||
end
|
||||
|
@ -42,5 +42,5 @@ module Register
|
||||
end
|
||||
end
|
||||
end
|
||||
Virtual::BootSpace.space.add_pass_after "Register::SetImplementation" , "Virtual::GetImplementation"
|
||||
Virtual::BootSpace.space.add_pass "Register::SetImplementation"
|
||||
end
|
||||
|
@ -84,10 +84,11 @@ require_relative "type"
|
||||
require_relative "object"
|
||||
require_relative "constants"
|
||||
require_relative "boot_space"
|
||||
# the passes _are_ order dependant
|
||||
require_relative "passes/send_implementation"
|
||||
require_relative "passes/get_implementation"
|
||||
require_relative "passes/frame_implementation"
|
||||
require_relative "passes/enter_implementation"
|
||||
require_relative "passes/frame_implementation"
|
||||
|
||||
Sof::Volotile.add(Virtual::Block , [:method])
|
||||
Sof::Volotile.add(Virtual::CompiledMethod , [:current])
|
||||
|
@ -13,5 +13,5 @@ module Virtual
|
||||
end
|
||||
end
|
||||
end
|
||||
Virtual::BootSpace.space.add_pass_after "Virtual::EnterImplementation" , "Virtual::GetImplementation"
|
||||
Virtual::BootSpace.space.add_pass "Virtual::EnterImplementation"
|
||||
end
|
||||
|
@ -46,5 +46,5 @@ module Virtual
|
||||
end
|
||||
end
|
||||
end
|
||||
Virtual::BootSpace.space.add_pass_after "Virtual::FrameImplementation" , "Virtual::GetImplementation"
|
||||
Virtual::BootSpace.space.add_pass "Virtual::FrameImplementation"
|
||||
end
|
||||
|
@ -11,5 +11,5 @@ module Virtual
|
||||
end
|
||||
end
|
||||
end
|
||||
Virtual::BootSpace.space.add_pass_after "Virtual::GetImplementation", "Virtual::SendImplementation"
|
||||
Virtual::BootSpace.space.add_pass "Virtual::GetImplementation"
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user