diff options
| author | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-18 21:39:24 -0700 |
|---|---|---|
| committer | Takashi Kokubun <takashikkbn@gmail.com> | 2023-03-18 21:39:24 -0700 |
| commit | 4a8de3fa8872ed43b33f1ae81ae4767f4334283a (patch) | |
| tree | 4db68c6ee2454bf47f016a68d6127990ec3133c0 /lib/ruby_vm | |
| parent | 9c2792c3d3933d7afeca9c46be9954057d06c5eb (diff) | |
RJIT: Fix toregexp
Diffstat (limited to 'lib/ruby_vm')
| -rw-r--r-- | lib/ruby_vm/rjit/insn_compiler.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ruby_vm/rjit/insn_compiler.rb b/lib/ruby_vm/rjit/insn_compiler.rb index 03b33e9971..ba645d2374 100644 --- a/lib/ruby_vm/rjit/insn_compiler.rb +++ b/lib/ruby_vm/rjit/insn_compiler.rb @@ -44,7 +44,7 @@ module RubyVM::RJIT when :putstring then putstring(jit, ctx, asm) when :concatstrings then concatstrings(jit, ctx, asm) when :anytostring then anytostring(jit, ctx, asm) - # toregexp + when :toregexp then toregexp(jit, ctx, asm) # intern when :newarray then newarray(jit, ctx, asm) # newarraykwsplat @@ -807,7 +807,7 @@ module RubyVM::RJIT asm.push(C_RET) asm.push(C_RET) # Alignment - asm.mov(C_ARGS[0], ary) + asm.mov(C_ARGS[0], C_RET) asm.mov(C_ARGS[1], opt) asm.call(C.rb_reg_new_ary) |
