rename locals from type to role in message

This commit is contained in:
Torsten Ruger
2016-12-21 19:01:42 +02:00
parent 0e99ff33ae
commit ed12108425
8 changed files with 9 additions and 9 deletions

View File

@ -115,7 +115,7 @@ module Register
def type_names
{ :Word => {:char_length => :Integer} ,
:List => {:indexed_length => :Integer} ,
:Message => { :next_message => :Message, :receiver => :Object, :named_list => :NamedList ,
:Message => { :next_message => :Message, :receiver => :Object, :locals => :NamedList ,
:return_address => :Integer, :return_value => :Integer,
:caller => :Message , :name => :Word , :indexed_length => :Integer },
:MetaClass => {:object => :Object},

View File

@ -99,7 +99,7 @@ module Register
# if a symbol is given, it may be one of the four objects that the vm knows.
# These are mapped to register references.
# The valid symbols (:message, :self,:named_list,:new_message) are the same that are returned
# The valid symbols (:message, :self,:locals,:new_message) are the same that are returned
# by the slots. All data (at any time) is in one of the instance variables of these four
# objects. Register defines module methods with the same names (and _reg)
def self.resolve_to_register reference