diff options
author | Takashi Kokubun <[email protected]> | 2022-11-26 15:38:43 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2022-11-26 15:39:53 -0800 |
commit | 73e42ef856840187966c78e73e6994506677a1cf (patch) | |
tree | 32b2daa3fcbf16e414222d9af8679fbbd9534b8f /lib | |
parent | b2dcde839d824ba30590ce0a8ab8a2fe281fdeb9 (diff) |
MJIT: Remove a duplicated rescue
`#compile` has a catch-call rescue, so compile_insn_entry shouldn't do
that. It was a temporary code needed during the migration.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mjit/compiler.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/mjit/compiler.rb b/lib/mjit/compiler.rb index a7546a340d..a305b6e7c4 100644 --- a/lib/mjit/compiler.rb +++ b/lib/mjit/compiler.rb @@ -97,6 +97,8 @@ module RubyVM::MJIT return status.success end + private + # Compile one conditional branch. If it has branchXXX insn, this should be # called multiple times for each branch. def compile_insns(stack_size, pos, status, body, f) @@ -240,13 +242,8 @@ module RubyVM::MJIT end return compile_insn_default(insn, stack_size, sp_inc, local_stack_p, pos, next_pos, insn_len, inlined_iseq_p, operands) - rescue => e - puts e.full_message - nil end - private - # Optimized case of send / opt_send_without_block instructions. # _mjit_compile_send.erb def compile_send(insn, stack_size, sp_inc, local_stack_p, pos, next_pos, status, operands, body) |