move space accesor to boot_space
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user