last fixes for cc

seems like setup had just worked by chance and change broke that.
This commit is contained in:
2019-08-23 19:22:27 +03:00
parent 4ca16e5f9a
commit 1eb6430880
6 changed files with 17 additions and 7 deletions

View File

@ -61,8 +61,12 @@ module Mom
# set the method into the message
def build_message_data( builder )
if(reg = builder.names["next_message"])
raise "NEXT = #{reg}"
end
builder.build do
next_message?[:method] << callable
next_message! << message[:next_message]
next_message[:method] << callable
end
end
end

View File

@ -31,7 +31,7 @@ module Mom
return_address! << message[:return_address]
return_address << return_address[ Parfait::Integer.integer_index]
message << message[:caller]
add_code Risc.function_return("return", return_address)
add_code Risc.function_return("return #{compiler.callable.name}", return_address)
end
end