move space accesor to boot_space

This commit is contained in:
Torsten Ruger
2014-08-24 21:32:21 +03:00
parent dd82095cca
commit 0b65e5840e
10 changed files with 18 additions and 17 deletions

View File

@ -39,6 +39,14 @@ module Virtual
end
end
def self.space
if defined? @@space
@@space
else
@@space = BootSpace.new
end
end
# Passes are initiated empty and added to by anyone who want (basically)
# Even linking and assembly are passes and so there are quite a few system passes neccesary to result in a
# working binary. Other than that, this is intentionally quite flexible

View File

@ -44,7 +44,7 @@ module Virtual
class_for(MoveInstruction).new(value , self , :opcode => :mov)
end
def clazz
Object.space.get_or_create_class(:String)
BootSpace.space.get_or_create_class(:String)
end
end

View File

@ -28,13 +28,6 @@ module Virtual
Sof::Writer.write(self)
end
def self.space
if defined? @@space
@@space
else
@@space = BootSpace.new
end
end
end
class Layout < Object