summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--yjit.rb26
2 files changed, 21 insertions, 6 deletions
@@ -167,6 +167,7 @@ lcov*.info
# /coroutine/
!/coroutine/**/*.s
# /enc/trans/
/enc/trans/*.c
@@ -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