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

@ -33,3 +33,7 @@ end
require_relative "instructions/set_slot"
require_relative "instructions/get_slot"
require_relative "instructions/load_constant"
require_relative "instructions/function_call"
require_relative "instructions/function_return"
require_relative "instructions/save_return"
require_relative "instructions/register_transfer"

View File

@ -2,5 +2,4 @@ require_relative "instruction"
require_relative "register_reference"
require_relative "assembler"
require_relative "passes/set_implementation"
require_relative "passes/enter_implementation"
require_relative "passes/return_implementation"

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])