right name for return label makes interpreter work
This commit is contained in:
parent
691ae96d71
commit
ab2c73f42c
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user