move space to parfait

Also make the machine the singleton
and space hang off it

Many repercussions, not all fixed in this commit
This commit is contained in:
Torsten Ruger
2015-05-12 15:36:44 +03:00
parent 2e8b514e9c
commit b980def84e
35 changed files with 185 additions and 195 deletions

View File

@ -13,5 +13,5 @@ module Virtual
end
end
end
Virtual::BootSpace.space.add_pass "Virtual::EnterImplementation"
Virtual::Machine.instance.add_pass "Virtual::EnterImplementation"
end

View File

@ -23,7 +23,7 @@ module Virtual
else
next
end
space = BootSpace.space
space = Space.space
slot = Virtual::Slot
# a place to store a reference to the space, we grab the next_frame from the space
space_tmp = Register::RegisterReference.new(Virtual::Message::TMP_REG)
@ -46,5 +46,5 @@ module Virtual
end
end
end
Virtual::BootSpace.space.add_pass "Virtual::FrameImplementation"
Virtual::Machine.instance.add_pass "Virtual::FrameImplementation"
end

View File

@ -11,5 +11,5 @@ module Virtual
end
end
end
Virtual::BootSpace.space.add_pass "Virtual::GetImplementation"
Virtual::Machine.instance.add_pass "Virtual::GetImplementation"
end

View File

@ -26,7 +26,7 @@ module Virtual
else
# note: this is the current view: call internal send, even the method name says else
# but send is "special" and accesses the internal method name and resolves.
kernel = Virtual::BootSpace.space.get_or_create_class(:Kernel)
kernel = Virtual::Space.space.get_or_create_class(:Kernel)
method = kernel.get_instance_method(:__send)
new_codes << MethodCall.new( method )
raise "unimplemented #{code}"