rename method to typed_method

This commit is contained in:
Torsten Ruger
2016-12-12 23:38:55 +02:00
parent 4ff684b6a4
commit 17023fdeb1
16 changed files with 27 additions and 22 deletions

View File

@ -31,7 +31,7 @@ module Register
def asseble_code_from( at )
@machine.objects.each do |id , objekt|
next unless objekt.is_a? Parfait::Method
next unless objekt.is_a? Parfait::TypedMethod
objekt.binary.position = at
objekt.instructions.set_position at + 12 # BinaryCode header
len = objekt.instructions.total_byte_length
@ -90,7 +90,7 @@ module Register
def try_write_create_binary
# first we need to create the binary code for the methods
@machine.objects.each do |id , objekt|
next unless objekt.is_a? Parfait::Method
next unless objekt.is_a? Parfait::TypedMethod
assemble_binary_method(objekt)
end
@stream = StringIO.new