diff options
Diffstat (limited to 'lib/ruby_vm/mjit/compiler.rb')
-rw-r--r-- | lib/ruby_vm/mjit/compiler.rb | 13 |
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 |