mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00

* YJIT: Replace Array#each only when YJIT is enabled * Add comments about BUILTIN_ATTR_C_TRACE * Make Ruby Array#each available with --yjit as well * Fix all paths that expect a C location * Use method_basic_definition_p to detect patches * Copy a comment about C_TRACE flag to compilers * Rephrase a comment about add_yjit_hook * Give METHOD_ENTRY_BASIC flag to Array#each * Add --yjit-c-builtin option * Allow inconsistent source_location in test-spec * Refactor a check of BUILTIN_ATTR_C_TRACE * Set METHOD_ENTRY_BASIC without touching vm->running
9 lines
240 B
Ruby
9 lines
240 B
Ruby
# If YJIT is enabled, load the YJIT-only version of builtin methods
|
|
if defined?(RubyVM::YJIT) && RubyVM::YJIT.enabled?
|
|
RubyVM::YJIT.send(:call_yjit_hooks)
|
|
end
|
|
|
|
# Remove the helper defined in kernel.rb
|
|
module Kernel
|
|
undef :with_yjit
|
|
end
|