зеркало из https://github.com/github/ruby.git
YJIT: Do not refer to an undefined constant (#7112)
This commit is contained in:
Родитель
8d3ff66389
Коммит
da7e5c7b77
7
yjit.rb
7
yjit.rb
|
@ -195,14 +195,11 @@ module RubyVM::YJIT
|
|||
|
||||
# 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
|
||||
end
|
||||
|
||||
# Free and recompile all existing JIT code
|
||||
|
|
Загрузка…
Ссылка в новой задаче