Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YJIT: Do not refer to an undefined constant #7112

Merged
merged 1 commit into from Jan 12, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
9 changes: 3 additions & 6 deletions yjit.rb
Expand Up @@ -195,14 +195,11 @@ def self.disasm(iseq)

# Produce a list of instructions compiled by YJIT for an iseq
def self.insns_compiled(iseq)
return nil unless self.enabled?

# If a method or proc is passed in, get its iseq
iseq = RubyVM::InstructionSequence.of(iseq)

if self.enabled?
Primitive.rb_yjit_insns_compiled(iseq)
else
Qnil
end
Primitive.rb_yjit_insns_compiled(iseq)
end

# Free and recompile all existing JIT code
Expand Down