some of the sources methods belonged to method really

This commit is contained in:
Torsten Ruger 2015-10-28 21:38:52 +02:00
parent bdb4a40f9c
commit c426f4a6d5

View File

@ -77,5 +77,16 @@ module Parfait
def inspect def inspect
"#{self.for_class.name}:#{name}(#{arguments.inspect})" "#{self.for_class.name}:#{name}(#{arguments.inspect})"
end end
def total_byte_length
self.instructions.total_byte_length
end
# position of the function is the position of the entry block, is where we call
def set_position at
at += 8 #for the 2 header words
self.instructions.set_position at
end
end end
end end