This commit is contained in:
Torsten Ruger
2015-07-30 19:18:41 +03:00
parent 7216300452
commit 8ab9a417aa
7 changed files with 18 additions and 16 deletions

View File

@ -46,6 +46,7 @@ module Virtual
# returns if this is a block that ends in a call (and thus needs local variable handling)
def call_block?
raise "called"
return false unless codes.last.is_a?(CallInstruction)
return false unless codes.last.opcode == :call
codes.dup.reverse.find{ |c| c.is_a? StackInstruction }