remove virtual main instruction

on a quest to remove all virtual instructions
This commit is contained in:
Torsten Ruger
2015-10-10 11:14:31 +03:00
parent 4b8a4d4ef5
commit 4334b68736
5 changed files with 2 additions and 49 deletions

View File

@ -1,17 +0,0 @@
module Register
# "Boot" the virtual machine at the function given
# meaning jump to that function currently. Maybe better to do some machine setup
# and possibly some cleanup/exit has to tie in, but that is not this day
class MainImplementation
def run block
block.codes.dup.each do |code|
next unless code.is_a? Virtual::VirtualMain
branch = Register::Branch.new( code , code.method.source.blocks.first )
block.replace(code , branch )
end
end
end
Virtual.machine.add_pass "Register::MainImplementation"
end