mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Move Kernel#with_yjit
to Module#with_yjit
This commit is contained in:
parent
14ce2443db
commit
3354324c6e
Notes:
git
2024-11-27 17:04:33 +00:00
2 changed files with 3 additions and 1 deletions
|
@ -290,7 +290,9 @@ module Kernel
|
||||||
Primitive.rb_f_integer(arg, base, exception)
|
Primitive.rb_f_integer(arg, base, exception)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
class Module
|
||||||
# Internal helper for built-in initializations to define methods only when YJIT is enabled.
|
# Internal helper for built-in initializations to define methods only when YJIT is enabled.
|
||||||
# This method is removed in yjit_hook.rb.
|
# This method is removed in yjit_hook.rb.
|
||||||
private def with_yjit(&block) # :nodoc:
|
private def with_yjit(&block) # :nodoc:
|
||||||
|
|
|
@ -4,6 +4,6 @@ if defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
|
||||||
end
|
end
|
||||||
|
|
||||||
# Remove the helper defined in kernel.rb
|
# Remove the helper defined in kernel.rb
|
||||||
module Kernel
|
class Module
|
||||||
undef :with_yjit
|
undef :with_yjit
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue