summaryrefslogtreecommitdiff
path: root/lib/ruby_vm/mjit/compiler.rb
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2023-01-02 22:53:14 -0800
committerTakashi Kokubun <[email protected]>2023-03-05 22:11:20 -0800
commita8dec34961d7734ad975e44efa8aae361a1c4f5a (patch)
tree5849c716f37c959d9276ddb8c598fe1142a7f6fa /lib/ruby_vm/mjit/compiler.rb
parent21696ad81ec40cf9cd146836dc8c945f1e485774 (diff)
Implement initial opt_lt
Diffstat (limited to 'lib/ruby_vm/mjit/compiler.rb')
-rw-r--r--lib/ruby_vm/mjit/compiler.rb13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/ruby_vm/mjit/compiler.rb b/lib/ruby_vm/mjit/compiler.rb
index 56e23a1f77..0e018a31f2 100644
--- a/lib/ruby_vm/mjit/compiler.rb
+++ b/lib/ruby_vm/mjit/compiler.rb
@@ -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