summaryrefslogtreecommitdiff
path: root/yjit.rb
diff options
context:
space:
mode:
-rw-r--r--yjit.rb26
1 files changed, 20 insertions, 6 deletions
@@ -201,13 +201,27 @@ module RubyVM::YJIT
# If a method or proc is passed in, get its iseq
iseq = RubyVM::InstructionSequence.of(iseq)
- if self.enabled?
- # Produce the disassembly string
- # Include the YARV iseq disasm in the string for additional context
- iseq.disasm + "\n" + Primitive.rb_yjit_disasm_iseq(iseq)
- else
- iseq.disasm
end
end
# Produce a list of instructions compiled by YJIT for an iseq