Handle failures on branch_stub_hit

This commit is contained in:
Takashi Kokubun 2023-02-10 15:22:05 -08:00
parent aba530e23b
commit 1fa519fdae

View File

@ -67,7 +67,8 @@ module RubyVM::MJIT
compile_block(asm, jit:)
iseq.body.jit_func = @cb.write(asm)
rescue Exception => e
$stderr.puts e.full_message # TODO: check verbose
$stderr.puts e.full_message
exit 1
end
# Compile a branch stub.
@ -119,6 +120,9 @@ module RubyVM::MJIT
end
return target.address
rescue Exception => e
$stderr.puts e.full_message
exit 1
end
private