add seperate builders
remove if with polymorphism for different builders (easier to understand by naming)
This commit is contained in:
@ -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, self)
|
||||
builder = compiler.code_builder(self)
|
||||
build_with(builder)
|
||||
end
|
||||
|
||||
|
@ -35,7 +35,7 @@ module Mom
|
||||
def to_risc( compiler )
|
||||
name_ = @name
|
||||
cache_entry_ = @cache_entry
|
||||
builder = compiler.builder(false, self)
|
||||
builder = compiler.code_builder(self)
|
||||
builder.build do
|
||||
word << name_
|
||||
cache_entry << cache_entry_
|
||||
|
Reference in New Issue
Block a user