fix function call and simple call logic

Before creating DynamicJump, the FunctionCall got a register for a
possible jump address. Now that is handled by DynamicJump and
FunctionCall just needs the method, from which it determines the
binaryCode address
This commit is contained in:
Torsten Ruger
2018-05-19 12:21:20 +03:00
parent 15e4533a2f
commit a350325b6b
4 changed files with 17 additions and 25 deletions

View File

@ -67,7 +67,7 @@ module Risc
builder.build do
add_load_constant("__init__ load return", exit_label , ret_tmp)
add_reg_to_slot("__init__ store return", ret_tmp , :message , :return_address)
add_function_call( "__init__ issue call" , Parfait.object_space.get_main , ret_tmp)
add_function_call( "__init__ issue call" , Parfait.object_space.get_main)
add_code exit_label
end
compiler.reset_regs