diff --git a/Gemfile.lock b/Gemfile.lock index f259c29f..b53dcbb1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,6 +1,6 @@ GIT remote: https://github.com/salama/salama-object-file.git - revision: b00f49ade6338da0f6766211a749d2000d36899b + revision: 9adf0b7e002ebef464abc1a3aa44c50c711e8a88 specs: salama-object-file (0.1) diff --git a/lib/parfait/class.rb b/lib/parfait/class.rb index d66922be..78906636 100644 --- a/lib/parfait/class.rb +++ b/lib/parfait/class.rb @@ -34,6 +34,9 @@ module Parfait @object_layout.push name end + def sof_reference_name + name + end # ruby 2.1 list (just for reference, keep at bottom) #:allocate, :new, :superclass end diff --git a/lib/parfait/layout.rb b/lib/parfait/layout.rb index 65909983..63081bb0 100644 --- a/lib/parfait/layout.rb +++ b/lib/parfait/layout.rb @@ -47,5 +47,10 @@ module Parfait def get_object_class() return @object_class end + + def sof_reference_name + "#{@object_class.name}_Layout" + end + end end diff --git a/lib/parfait/method.rb b/lib/parfait/method.rb index fe67e4e0..e45a8d54 100644 --- a/lib/parfait/method.rb +++ b/lib/parfait/method.rb @@ -70,5 +70,9 @@ module Parfait var end + def sof_reference_name + @name + end + end end diff --git a/lib/parfait/space.rb b/lib/parfait/space.rb index 70a2ab62..9ef1017d 100644 --- a/lib/parfait/space.rb +++ b/lib/parfait/space.rb @@ -74,6 +74,11 @@ module Parfait c = Class.new_object(name , superclass) @classes[name] = c end + + def sof_reference_name + "space" + end + end # ObjectSpace # :each_object, :garbage_collect, :define_finalizer, :undefine_finalizer, :_id2ref, :count_objects diff --git a/lib/register/register_reference.rb b/lib/register/register_reference.rb index 977557b0..39975818 100644 --- a/lib/register/register_reference.rb +++ b/lib/register/register_reference.rb @@ -69,6 +69,9 @@ module Register new TMP_REG end + def sof_reference_name + @symbol + end end