there go the slots

addressing them now directly in get/set slot
idea is still valid, but express objects not needed/used anymore
This commit is contained in:
Torsten Ruger
2015-10-16 18:16:39 +03:00
parent 64a92fb9f4
commit aaaef6e3d7
7 changed files with 1 additions and 180 deletions

20
stash/slot.rb Normal file
View File

@ -0,0 +1,20 @@
module Virtual
# A slot is a slot in an object. It is the storage location for a value.
# (Remember, values are typed)
# From a memory perspective a slot is an index into an array (the object)
# The mapping into arrays is a straightforward matter, but happens in the
# next level down, the register machine.
# Four known objects exist and those correspond to subclasses:
# - the message that has been received: MessageSlot
# - the frame of the method that is executing (local variables): FrameSlot
# - self as an object: SelfsSlot
# - a message that will be sent, NewMessageSlot
# additionally frame, self and return are slots in Message and NewMessage
# Slot has a lot of small subclasses
# Names for the slots avoid indexes
end