From e20fba61d9fc8d185e3280663574ff5764acce17 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Fri, 26 Jun 2015 20:34:40 +0300 Subject: [PATCH] allowing for relinking to add more instructions --- lib/virtual/compiled_method_info.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/virtual/compiled_method_info.rb b/lib/virtual/compiled_method_info.rb index e331aa13..619dcdc7 100644 --- a/lib/virtual/compiled_method_info.rb +++ b/lib/virtual/compiled_method_info.rb @@ -136,7 +136,7 @@ module Virtual end def byte_length - @blocks.inject(0) { |c , block| c += block.byte_length } + @blocks.inject(0) { |c , block| c += block.byte_length } + 8 end # position of the function is the position of the entry block, is where we call