mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 05:55:46 +02:00
Optimize setivar for known ivar index
This commit is contained in:
parent
357007626c
commit
e8a36eb4f6
Notes:
git
2023-03-06 07:29:46 +00:00
5 changed files with 164 additions and 12 deletions
|
@ -370,6 +370,10 @@ module RubyVM::MJIT
|
|||
|
||||
def jbe(dst)
|
||||
case dst
|
||||
# JBE rel8
|
||||
in Label => dst_label
|
||||
# 76 cb
|
||||
insn(opcode: 0x76, imm: dst_label)
|
||||
# JBE rel32
|
||||
in Integer => dst_addr
|
||||
# 0F 86 cd
|
||||
|
@ -441,6 +445,10 @@ module RubyVM::MJIT
|
|||
|
||||
def jnz(dst)
|
||||
case dst
|
||||
# JE rel8
|
||||
in Label => dst_label
|
||||
# 75 cb
|
||||
insn(opcode: 0x75, imm: dst_label)
|
||||
# JNZ rel32
|
||||
in Integer => dst_addr
|
||||
# 0F 85 cd
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue