wrought one more instruction for message setup

now with dsl ready, should be faster
This commit is contained in:
Torsten Ruger
2018-04-06 20:58:58 +03:00
parent c02576b239
commit 41d573d571
3 changed files with 11 additions and 17 deletions

View File

@ -47,20 +47,14 @@ module Mom
"method setup "
end
# get the method from method_source into the given register
# return instructions to do this
def move_method_to(compiler, register)
Risc.load_constant(source + " move method" , @method_source ,register)
end
# get the next message from space and unlink it there
# also put it into next_message of current message
# use given message register
# return instructions to do this
def get_message_to( builder )
builder.build do
# space << Parfait.object_space
#message << space[:first_message]
space << Parfait.object_space
space[:first_message] >> next_message
#risc << Risc.slot_to_reg(source + "get next message" , space , :first_message , message)
end
end