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:
@ -13,5 +13,5 @@ module Virtual
|
||||
end
|
||||
end
|
||||
end
|
||||
Virtual::BootSpace.space.add_pass "Virtual::EnterImplementation"
|
||||
Virtual::Machine.instance.add_pass "Virtual::EnterImplementation"
|
||||
end
|
||||
|
@ -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
|
||||
|
@ -11,5 +11,5 @@ module Virtual
|
||||
end
|
||||
end
|
||||
end
|
||||
Virtual::BootSpace.space.add_pass "Virtual::GetImplementation"
|
||||
Virtual::Machine.instance.add_pass "Virtual::GetImplementation"
|
||||
end
|
||||
|
@ -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}"
|
||||
|
Reference in New Issue
Block a user