bit more on booting of the space
This commit is contained in:
@ -59,16 +59,20 @@ module Virtual
|
||||
class_mappings["Kernel"] = value_classes[2] #need for further booting
|
||||
class_mappings["Object"] = value_classes[3] #need for further booting
|
||||
|
||||
# add space and instances which get created before the objects list
|
||||
@space.add_object @space
|
||||
@space.add_object @space.classes
|
||||
@space.add_object @space.classes.keys
|
||||
@space.add_object @space.classes.values
|
||||
@space.add_object @space.objects
|
||||
|
||||
@space.late_init
|
||||
|
||||
# now update the layout on all objects created so far,
|
||||
# go through objects in space
|
||||
@space.objects.each do | o |
|
||||
o.init_layout
|
||||
end
|
||||
# and go through the space instance variables which get created before the object list
|
||||
@space.init_layout
|
||||
@space.classes.init_layout
|
||||
@space.objects.init_layout
|
||||
@space.late_init
|
||||
boot_functions!
|
||||
end
|
||||
|
||||
|
@ -10,7 +10,9 @@ module Virtual
|
||||
# instructions, thus defining a minimal set of instructions needed to implement oo.
|
||||
|
||||
class Instruction
|
||||
include Positioned
|
||||
def to_s
|
||||
Sof::Writer.write(self)
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -34,11 +34,9 @@ module Virtual
|
||||
|
||||
def initialize
|
||||
@parser = Parser::Salama.new
|
||||
#the_end = Halt.new
|
||||
@passes = [ "Virtual::SendImplementation" ]
|
||||
# @message = Message.new(the_end , the_end , "Object" )
|
||||
end
|
||||
attr_reader :message , :passes , :space , :init , :main , :class_mappings
|
||||
attr_reader :message , :passes , :space , :class_mappings
|
||||
|
||||
def run_passes
|
||||
#TODO puts "INIT #{@init}"
|
||||
|
Reference in New Issue
Block a user