зеркало из https://github.com/github/ruby.git
YJIT: Do not refer to an undefined constant (#7112)
This commit is contained in:
Родитель
8d3ff66389
Коммит
da7e5c7b77
9
yjit.rb
9
yjit.rb
|
@ -195,14 +195,11 @@ module RubyVM::YJIT
|
||||||
|
|
||||||
# Produce a list of instructions compiled by YJIT for an iseq
|
# Produce a list of instructions compiled by YJIT for an iseq
|
||||||
def self.insns_compiled(iseq)
|
def self.insns_compiled(iseq)
|
||||||
|
return nil unless self.enabled?
|
||||||
|
|
||||||
# If a method or proc is passed in, get its iseq
|
# If a method or proc is passed in, get its iseq
|
||||||
iseq = RubyVM::InstructionSequence.of(iseq)
|
iseq = RubyVM::InstructionSequence.of(iseq)
|
||||||
|
Primitive.rb_yjit_insns_compiled(iseq)
|
||||||
if self.enabled?
|
|
||||||
Primitive.rb_yjit_insns_compiled(iseq)
|
|
||||||
else
|
|
||||||
Qnil
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Free and recompile all existing JIT code
|
# Free and recompile all existing JIT code
|
||||||
|
|
Загрузка…
Ссылка в новой задаче