Expose rb_sym_to_proc via RJIT
This is needed for getblockparamproxy
This commit is contained in:
parent
ac8a16237c
commit
a9bfb64153
Notes:
git
2023-04-07 16:49:39 +00:00
@ -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/hash.h
|
||||||
rjit_c.$(OBJEXT): $(top_srcdir)/internal/imemo.h
|
rjit_c.$(OBJEXT): $(top_srcdir)/internal/imemo.h
|
||||||
rjit_c.$(OBJEXT): $(top_srcdir)/internal/object.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/sanitizers.h
|
||||||
rjit_c.$(OBJEXT): $(top_srcdir)/internal/serial.h
|
rjit_c.$(OBJEXT): $(top_srcdir)/internal/serial.h
|
||||||
rjit_c.$(OBJEXT): $(top_srcdir)/internal/static_assert.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/hash.h"
|
||||||
#include "internal/sanitizers.h"
|
#include "internal/sanitizers.h"
|
||||||
#include "internal/gc.h"
|
#include "internal/gc.h"
|
||||||
|
#include "internal/proc.h"
|
||||||
#include "yjit.h"
|
#include "yjit.h"
|
||||||
#include "vm_insnhelper.h"
|
#include "vm_insnhelper.h"
|
||||||
#include "probes.h"
|
#include "probes.h"
|
||||||
|
@ -696,6 +696,10 @@ module RubyVM::RJIT # :nodoc: all
|
|||||||
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_str_intern) }
|
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_str_intern) }
|
||||||
end
|
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
|
def C.rb_vm_bh_to_procval
|
||||||
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_vm_bh_to_procval) }
|
Primitive.cexpr! %q{ SIZET2NUM((size_t)rb_vm_bh_to_procval) }
|
||||||
end
|
end
|
||||||
|
@ -572,6 +572,7 @@ generator = BindingGenerator.new(
|
|||||||
rjit_build_kwhash
|
rjit_build_kwhash
|
||||||
rb_rjit_entry_stub_hit
|
rb_rjit_entry_stub_hit
|
||||||
rb_rjit_branch_stub_hit
|
rb_rjit_branch_stub_hit
|
||||||
|
rb_sym_to_proc
|
||||||
],
|
],
|
||||||
types: %w[
|
types: %w[
|
||||||
CALL_DATA
|
CALL_DATA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user