mirror of
https://github.com/ruby/ruby.git
synced 2025-08-25 14:05:02 +02:00
Implement initial opt_lt
This commit is contained in:
parent
21696ad81e
commit
a8dec34961
9 changed files with 143 additions and 34 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue