pass a source into the builder

for debugging
This commit is contained in:
Torsten Ruger
2018-04-18 19:12:30 +03:00
parent df08cb78e2
commit 059ff4a868
8 changed files with 21 additions and 18 deletions

View File

@ -27,7 +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 = compiler.builder(false)
builder = compiler.builder(false, self)
build_with(builder)
end

View File

@ -32,7 +32,7 @@ module Mom
def to_risc( compiler )
name_ = @name
cache_entry_ = @cache_entry
builder = compiler.builder(false)
builder = compiler.builder(false, self)
builder.build do
word << name_
cache_entry << cache_entry_