minor formatting

This commit is contained in:
Torsten Ruger 2015-07-18 11:52:30 +03:00
parent 53d8f4b163
commit f5136b6b68
3 changed files with 4 additions and 10 deletions

View File

@ -48,7 +48,7 @@ module Arm
#TODO this is copied from MoveInstruction, should rework
unless @extra
@extra = 1
puts "RELINK L at #{self.position.to_s(16)}"
#puts "RELINK L at #{self.position.to_s(16)}"
raise ::Register::LinkException.new("cannot fit numeric literal argument in operand #{right.inspect}")
end
# now we can do the actual breaking of instruction, by splitting the operand

View File

@ -62,7 +62,7 @@ module Arm
# then on subsequent assemblies we can assemble
unless @extra
@extra = 1
puts "RELINK M at #{self.position.to_s(16)}"
#puts "RELINK M at #{self.position.to_s(16)}"
raise ::Register::LinkException.new("cannot fit numeric literal argument in operand #{right.inspect}")
end
# now we can do the actual breaking of instruction, by splitting the operand

View File

@ -47,13 +47,7 @@ module Parfait
# private
def set_layout(layout)
#if( was = internal_object_get(LAYOUT_INDEX) )
#TODO find out wat these objects are
#puts "Layout was set for #{self.class}"
#puts "#{self}" if self.class == Parfait::Word
# Space.object_space.check was
# return
#end
# puts "Layout was set for #{self.class}"
raise "Nil layout" unless layout
internal_object_set(LAYOUT_INDEX , layout)
end
@ -65,7 +59,7 @@ module Parfait
def get_layout()
l = internal_object_get(LAYOUT_INDEX)
raise "No layout #{self.to_s}:#{self.class} #{self.object_id}" unless l
raise "No layout #{self.object_id.to_s(16)}=#{self.to_s[0 ... 100]}:#{self.class} " unless l
return l
end