fix imports and name issues

This commit is contained in:
Torsten Ruger
2014-10-04 12:52:47 +03:00
parent 4f7fefb0ab
commit 9939c6afa0
4 changed files with 6 additions and 2 deletions

View File

@ -54,7 +54,7 @@ module Virtual
# add an instruction after the current (insertion point)
# the added instruction will become the new insertion point
def add_code instruction
raise instruction.inspect unless instruction.is_a? Instruction
raise instruction.inspect unless (instruction.is_a?(Instruction) or instruction.is_a?(Register::Instruction))
@current.add_code(instruction) #insert after current
self
end

View File

@ -87,6 +87,7 @@ require_relative "boot_space"
require_relative "passes/send_implementation"
require_relative "passes/get_implementation"
require_relative "passes/frame_implementation"
require_relative "passes/enter_implementation"
Sof::Volotile.add(Virtual::Block , [:method])
Sof::Volotile.add(Virtual::CompiledMethod , [:current])