static message chain

Rewrote Message + frame, only static linked list needed, not dynamic
frames either
This commit is contained in:
Torsten Ruger
2015-07-01 19:27:18 +03:00
parent fb67f550ec
commit 135fcaa8fa
4 changed files with 25 additions and 14 deletions

View File

@ -14,7 +14,7 @@ module Register
#Set up the Space as self upon init
space = Parfait::Space.object_space
function.info.add_code LoadConstant.new( space , Register.self_reg)
message_ind = Register.resolve_index( :space , :init_message )
message_ind = Register.resolve_index( :space , :first_message )
# Load the message to new message register (r3)
function.info.add_code Register.get_slot( :self , message_ind , :new_message)
# And store the space as the new self (so the call can move it back as self)