sorting mom instructions and statements into separate dirs

This commit is contained in:
Torsten Ruger
2018-03-13 16:51:33 +05:30
parent 2779045caa
commit 20a88f9ac8
17 changed files with 21 additions and 19 deletions

View File

@ -0,0 +1,27 @@
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
def to_risc(compiler)
Risc::Label.new(self,method.name)
end
end
end