rename old layout()
new is called get_layout, but keep old around for checking
This commit is contained in:
@ -62,7 +62,7 @@ module Parfait
|
||||
end
|
||||
|
||||
@@CLAZZ = { :names => [:name , :super_class_name , :instance_methods] , :types => [Virtual::Reference,Virtual::Reference,Virtual::Reference]}
|
||||
def layout
|
||||
def old_layout
|
||||
@@CLAZZ
|
||||
end
|
||||
def mem_length
|
||||
|
@ -37,7 +37,7 @@ module Parfait
|
||||
|
||||
@@SPACE = { :names => [:classes,:objects,:symbols,:messages, :next_message , :next_frame] ,
|
||||
:types => [Virtual::Reference,Virtual::Reference,Virtual::Reference,Virtual::Reference,Virtual::Reference]}
|
||||
def layout
|
||||
def old_layout
|
||||
@@SPACE
|
||||
end
|
||||
|
||||
|
@ -8,6 +8,10 @@ module Parfait
|
||||
# Words are constant, maybe like js strings, ruby symbols
|
||||
# Words are short, but may have spaces
|
||||
|
||||
# Words are objects, that means they carry Layout as index 0
|
||||
# So all indexes are offset by one in the implementation
|
||||
# Object length is measured in non-layout cells though
|
||||
|
||||
# big TODO , this has NO encoding, a char takes a machine word. Go fix.
|
||||
class Word < Object
|
||||
# initialize with length. For now we try to keep all non-parfait (including String) out
|
||||
|
Reference in New Issue
Block a user