diff options
author | Takashi Kokubun <[email protected]> | 2023-02-07 23:40:05 -0800 |
---|---|---|
committer | Takashi Kokubun <[email protected]> | 2023-03-05 22:11:20 -0800 |
commit | 0a400f38e8005c280a84bab38b64eeeec99a6316 (patch) | |
tree | 146c559f4cb82669f21b33755ace743df650ccc4 /lib | |
parent | 3ed7fa76e0dad293bf7d1b7a6672aa0f1589e0b2 (diff) |
Implement nop
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ruby_vm/mjit/insn_compiler.rb | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/lib/ruby_vm/mjit/insn_compiler.rb b/lib/ruby_vm/mjit/insn_compiler.rb index cfbd1cd65d..7a03726d07 100644 --- a/lib/ruby_vm/mjit/insn_compiler.rb +++ b/lib/ruby_vm/mjit/insn_compiler.rb @@ -17,9 +17,9 @@ module RubyVM::MJIT asm.incr_counter(:mjit_insns_count) asm.comment("Insn: #{insn.name}") - # 13/101 + # 14/101 case insn.name - # nop + when :nop then nop(jit, ctx, asm) # getlocal # setlocal # getblockparam @@ -129,7 +129,14 @@ module RubyVM::MJIT # Insns # - # nop + # @param jit [RubyVM::MJIT::JITState] + # @param ctx [RubyVM::MJIT::Context] + # @param asm [RubyVM::MJIT::Assembler] + def nop(jit, ctx, asm) + # Do nothing + KeepCompiling + end + # getlocal # setlocal # getblockparam |