add source to instruction

for debug
This commit is contained in:
Torsten Ruger
2015-07-18 11:21:49 +03:00
parent 50da6a40f2
commit 53d8f4b163
5 changed files with 21 additions and 3 deletions

View File

@ -8,7 +8,7 @@ module Register
def run block
block.codes.dup.each do |code|
next unless code.is_a? Virtual::VirtualMain
branch = Register::Branch.new( code.method.source.blocks.first )
branch = Register::Branch.new( code , code.method.source.blocks.first )
block.replace(code , branch )
end
end