зеркало из https://github.com/github/ruby.git
Expose rb_sym_to_proc via RJIT
This is needed for getblockparamproxy
This commit is contained in:
Родитель
ac8a16237c
Коммит
a9bfb64153
|
@ -13416,6 +13416,7 @@ rjit_c.$(OBJEXT): $(top_srcdir)/internal/gc.h
|
|||
rjit_c.$(OBJEXT): $(top_srcdir)/internal/hash.h
|
||||
rjit_c.$(OBJEXT): $(top_srcdir)/internal/imemo.h
|
||||
rjit_c.$(OBJEXT): $(top_srcdir)/internal/object.h
|
||||
rjit_c.$(OBJEXT): $(top_srcdir)/internal/proc.h
|
||||
rjit_c.$(OBJEXT): $(top_srcdir)/internal/sanitizers.h
|
||||
rjit_c.$(OBJEXT): $(top_srcdir)/internal/serial.h
|
||||
rjit_c.$(OBJEXT): $(top_srcdir)/internal/static_assert.h
|
||||
|
|
1
rjit_c.c
1
rjit_c.c
|
@ -19,6 +19,7 @@
|
|||
#include "internal/hash.h"
|
||||
#include "internal/sanitizers.h"
|
||||
#include "internal/gc.h"
|
||||
#include "internal/proc.h"
|
||||
#include "yjit.h"
|
||||
#include "vm_insnhelper.h"
|
||||
#include "probes.h"
|
||||
|
|
|
@ -696,6 +696,10 @@ module RubyVM::RJIT # :nodoc: all
|
|||
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_str_intern) }
|
||||
end
|
||||
|
||||
def C.rb_sym_to_proc
|
||||
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_sym_to_proc) }
|
||||
end
|
||||
|
||||
def C.rb_vm_bh_to_procval
|
||||
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_vm_bh_to_procval) }
|
||||
end
|
||||
|
|
|
@ -572,6 +572,7 @@ generator = BindingGenerator.new(
|
|||
rjit_build_kwhash
|
||||
rb_rjit_entry_stub_hit
|
||||
rb_rjit_branch_stub_hit
|
||||
rb_sym_to_proc
|
||||
],
|
||||
types: %w[
|
||||
CALL_DATA
|
||||
|
|
Загрузка…
Ссылка в новой задаче