fixing assembly

position code changed and linking too
passes not working
This commit is contained in:
Torsten Ruger
2015-05-24 18:05:20 +03:00
parent 95ac024421
commit 2ccbea04b9
15 changed files with 111 additions and 182 deletions

View File

@ -34,10 +34,6 @@ module Parfait
@object_layout.push name
end
def mem_length
padded_words(3)
end
# ruby 2.1 list (just for reference, keep at bottom)
#:allocate, :new, :superclass
end

View File

@ -33,7 +33,7 @@ module Parfait
raise "not a method #{method.class} #{method.inspect}" unless method.is_a? Method
raise "syserr #{method.name.class}" unless method.name.is_a? Word
@instance_methods << method
puts "#{self.name} add #{method.name}"
#puts "#{self.name} add #{method.name}"
method
end

View File

@ -71,6 +71,10 @@ module Parfait
get_layout().index_of(name)
end
def mem_length
padded_words( get_layout().get_length() + 2 )
end
# Object
# :nil?, :===, :=~, :!~, :eql?, :hash, :<=>, :class, :singleton_class, :clone, :dup, :taint, :tainted?, :untaint,
# :untrust, :untrusted?, :trust, :freeze, :frozen?, :to_s, :inspect, :methods, :singleton_methods, :protected_methods,

View File

@ -74,10 +74,6 @@ module Parfait
raise "uups " if name.is_a? String
@classes[name] = c
end
def mem_length
padded_words( 5 )
end
end
# ObjectSpace
# :each_object, :garbage_collect, :define_finalizer, :undefine_finalizer, :_id2ref, :count_objects