mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add YJIT.enabled?
This commit is contained in:
parent
9a436da064
commit
4dc821e643
2 changed files with 17 additions and 0 deletions
13
common.mk
13
common.mk
|
@ -8743,6 +8743,18 @@ mjit_build_dir.$(OBJEXT): {$(VPATH)}internal/compiler_since.h
|
|||
mjit_build_dir.$(OBJEXT): {$(VPATH)}internal/config.h
|
||||
mjit_build_dir.$(OBJEXT): {$(VPATH)}ruby-runner.c
|
||||
mjit_build_dir.$(OBJEXT): {$(VPATH)}ruby-runner.h
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}config.h
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}internal/compiler_is.h
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}internal/compiler_is/apple.h
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}internal/compiler_is/clang.h
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}internal/compiler_is/gcc.h
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}internal/compiler_is/intel.h
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}internal/compiler_is/msvc.h
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}internal/compiler_is/sunpro.h
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}internal/compiler_since.h
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}internal/config.h
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}ruby-runner.c
|
||||
mjit_build_dir.so-ruby-runner.$(OBJEXT): {$(VPATH)}ruby-runner.h
|
||||
mjit_compile.$(OBJEXT): $(CCAN_DIR)/check_type/check_type.h
|
||||
mjit_compile.$(OBJEXT): $(CCAN_DIR)/container_of/container_of.h
|
||||
mjit_compile.$(OBJEXT): $(CCAN_DIR)/list/list.h
|
||||
|
@ -17486,6 +17498,7 @@ yjit_iface.$(OBJEXT): {$(VPATH)}vm_debug.h
|
|||
yjit_iface.$(OBJEXT): {$(VPATH)}vm_opts.h
|
||||
yjit_iface.$(OBJEXT): {$(VPATH)}vm_sync.h
|
||||
yjit_iface.$(OBJEXT): {$(VPATH)}yjit.h
|
||||
yjit_iface.$(OBJEXT): {$(VPATH)}yjit.rb
|
||||
yjit_iface.$(OBJEXT): {$(VPATH)}yjit.rbinc
|
||||
yjit_iface.$(OBJEXT): {$(VPATH)}yjit_asm.h
|
||||
yjit_iface.$(OBJEXT): {$(VPATH)}yjit_codegen.h
|
||||
|
|
4
yjit.rb
4
yjit.rb
|
@ -134,6 +134,10 @@ module YJIT
|
|||
Primitive.reset_stats_bang
|
||||
end
|
||||
|
||||
def self.enabled?
|
||||
Primitive.cexpr! 'rb_yjit_enabled_p() ? Qtrue : Qfalse'
|
||||
end
|
||||
|
||||
class << self
|
||||
private
|
||||
|
||||
|
|
Loading…
Reference in a new issue