removing those ugly slot index constants

The constants were bad enough,
but they were also at the wrong level

Now register level is defining mappings from
symbol names to indexes, by using the layout
This commit is contained in:
Torsten Ruger
2015-06-29 10:55:22 +03:00
parent 06b5d24729
commit 5ce7b6c7c9
6 changed files with 77 additions and 57 deletions

View File

@ -2,9 +2,9 @@ module Virtual
# Slots in the Frame a re represented by instances of FrameSlot
# Slots in the Frame are local or temporary varialbes in a message
# Slots in the Frame are local or temporary variables in a message
class FrameSlot < Slot
def initialize index , type = Unknown, value = nil
def initialize type = Unknown, value = nil
super
end
end