From ab2c73f42cf199b1c570126d09a4b661c35f6215 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Wed, 4 Nov 2015 20:22:28 +0200 Subject: [PATCH] right name for return label makes interpreter work --- lib/register/instructions/function_call.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/register/instructions/function_call.rb b/lib/register/instructions/function_call.rb index 9d20bfa7..2a174d9e 100644 --- a/lib/register/instructions/function_call.rb +++ b/lib/register/instructions/function_call.rb @@ -17,7 +17,7 @@ module Register def self.issue_call compiler , callee source = "_issue_call(#{callee.name})" - return_label = Label.new("_return_label" , "_return_label" ) + return_label = Label.new("_return_label" , "#{compiler.clazz.name}.#{compiler.method.name}" ) ret_tmp = compiler.use_reg(:Label) compiler.add_code Register::LoadConstant.new(source, return_label , ret_tmp) compiler.add_code Register.set_slot(source, ret_tmp , :new_message , :return_address)