summaryrefslogtreecommitdiff
path: root/yjit
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2024-02-13 10:21:22 -0500
committerPeter Zhu <[email protected]>2024-02-14 13:43:02 -0500
commit1d3b306753baf05642836cc6f17015c9309c1420 (patch)
treea47d7afdfd1f2a326cb6d1f70cea5e5e7aa7ccb0 /yjit
parentfc2c128e7e1fd4a197669d2f04e8457f4188b7f3 (diff)
Move rb_class_allocate_instance from gc.c to object.c
Diffstat (limited to 'yjit')
-rw-r--r--yjit/bindgen/src/main.rs5
-rw-r--r--yjit/src/cruby_bindings.inc.rs2
2 files changed, 5 insertions, 2 deletions
diff --git a/yjit/bindgen/src/main.rs b/yjit/bindgen/src/main.rs
index 0824e80cd0..ffe56619cc 100644
--- a/yjit/bindgen/src/main.rs
+++ b/yjit/bindgen/src/main.rs
@@ -38,6 +38,7 @@ fn main() {
.clang_args(filtered_clang_args)
.header("encindex.h")
.header("internal.h")
+ .header("internal/object.h")
.header("internal/re.h")
.header("include/ruby/ruby.h")
.header("shape.h")
@@ -375,8 +376,10 @@ fn main() {
// From include/ruby/internal/intern/vm.h
.allowlist_function("rb_get_alloc_func")
- // From gc.h and internal/gc.h
+ // From internal/object.h
.allowlist_function("rb_class_allocate_instance")
+
+ // From gc.h and internal/gc.h
.allowlist_function("rb_obj_info")
.allowlist_function("ruby_xfree")
diff --git a/yjit/src/cruby_bindings.inc.rs b/yjit/src/cruby_bindings.inc.rs
index 54cd51b61e..d7bfc2a0c9 100644
--- a/yjit/src/cruby_bindings.inc.rs
+++ b/yjit/src/cruby_bindings.inc.rs
@@ -1007,6 +1007,7 @@ extern "C" {
pub fn rb_ivar_defined(obj: VALUE, name: ID) -> VALUE;
pub fn rb_attr_get(obj: VALUE, name: ID) -> VALUE;
pub fn rb_obj_info_dump(obj: VALUE);
+ pub fn rb_class_allocate_instance(klass: VALUE) -> VALUE;
pub fn rb_reg_new_ary(ary: VALUE, options: ::std::os::raw::c_int) -> VALUE;
pub fn rb_ary_tmp_new_from_values(
arg1: VALUE,
@@ -1036,7 +1037,6 @@ extern "C" {
cfp: *const rb_control_frame_t,
) -> *const rb_callable_method_entry_t;
pub fn rb_obj_info(obj: VALUE) -> *const ::std::os::raw::c_char;
- pub fn rb_class_allocate_instance(klass: VALUE) -> VALUE;
pub fn rb_ec_stack_check(ec: *mut rb_execution_context_struct) -> ::std::os::raw::c_int;
pub fn rb_shape_id_offset() -> i32;
pub fn rb_shape_get_shape_by_id(shape_id: shape_id_t) -> *mut rb_shape_t;