remove memory from sod but keep layout

This commit is contained in:
Torsten Ruger
2015-06-19 13:11:40 +03:00
parent 87143091ca
commit a2bfaf1b2c
2 changed files with 12 additions and 1 deletions

View File

@ -38,7 +38,7 @@ end
class Symbol
include Positioned
include Padding
def init_layout; end
def has_layout?
true
@ -109,6 +109,10 @@ module Parfait
def internal_object_set(index , value)
raise "failed init for #{self.class}" unless @memory
@memory[index] = value
#shaddowing layout so we can ignore memory in Sof
if(index == LAYOUT_INDEX)
@layout = value
end
end
def internal_object_grow(length)
old_length = internal_object_length()