extracting some of the calling into own instructions

This commit is contained in:
Torsten Ruger
2017-09-11 14:22:33 +03:00
parent b6939fe4b3
commit afbcbca4da
4 changed files with 60 additions and 5 deletions

22
lib/mom/message_setup.rb Normal file
View File

@@ -0,0 +1,22 @@
module Mom
# Preamble when entering the method body.
# Acquiring the message basically.
#
# Currently messages are hardwired as a linked list,
# but this does not account for continuations or closures and
# so will have to be changed.
#
# With the current setup this maps to a single SlotMove, ie 2 risc Instructions
# But clearer this way.
#
class MessageSetup < Instruction
attr_reader :method
def initialize(method)
@method = method
end
end
end