Implement initial opt_lt

This commit is contained in:
Takashi Kokubun 2023-01-02 22:53:14 -08:00
parent 21696ad81e
commit a8dec34961
9 changed files with 143 additions and 34 deletions

View file

@ -16,6 +16,8 @@ module RubyVM::MJIT
EndBlock = :EndBlock
# Ruby constants
Qtrue = Fiddle::Qtrue
Qfalse = Fiddle::Qfalse
Qnil = Fiddle::Qnil
Qundef = Fiddle::Qundef
@ -25,6 +27,8 @@ module RubyVM::MJIT
CFP = :r15
SP = :rbx
# Scratch registers: rax, rcx
class Compiler
attr_accessor :write_pos
@ -134,14 +138,5 @@ module RubyVM::MJIT
index += insn.len
end
end
# vm_core.h: pathobj_path
def pathobj_path(pathobj)
if pathobj.is_a?(String)
pathobj
else
pathobj.first
end
end
end
end