fix imports and name issues
This commit is contained in:
parent
4f7fefb0ab
commit
9939c6afa0
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -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
|
||||
|
@ -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])
|
||||
|
Loading…
Reference in New Issue
Block a user