rework resolve_method, using builder

This commit is contained in:
Torsten Ruger
2018-04-07 23:07:44 +03:00
parent bf8e9e508b
commit 6958fc31ab
7 changed files with 33 additions and 36 deletions

View File

@ -27,8 +27,7 @@ module Mom
# Move method name, frame and arguemnt types from the method to the next_message
# Get the message from Space and link it.
def to_risc(compiler)
builder = Risc::Builder.new(compiler)
build_with(builder)
build_with(compiler.builder)
end
# directly called by to_risc

View File

@ -1,6 +1,6 @@
module Mom
# SlotLoad is an abstract base class for moving data into a slot
# SlotLoad is for moving data into a slot, either from another slot, or constant
# A Slot is basically an instance variable, but it must be of known type
#
# The value loaded (the right hand side) can be a constant (Mom::Constant) or come from