summaryrefslogtreecommitdiff
path: root/yjit/bindgen/src/main.rs
diff options
context:
space:
mode:
authorRandy Stauner <[email protected]>2024-08-27 19:24:17 -0700
committer<[email protected]>2024-08-27 22:24:17 -0400
commit942317ebf8a5e4a85189411ee4d48267f21ecca5 ()
tree03554f6160f2b4f86282ebdd2eeef3d8e449c6f6 /yjit/bindgen/src/main.rs
parent5b129c899a5cf3bf8253eaaf7fbc8331b1e55f75 (diff)
YJIT: Encode doubles to VALUE objects and move stat generation to rust (#11388)
* YJIT: Encode doubles to VALUE objects and move stat generation to rust Stats that can now be generated from rust have been moved there. * Move object_shape_count call for runtime_stats to rust This reduces the ruby method to a single primitive. * Change hash_aset_usize from macro to function
Notes: Merged-By: maximecb <[email protected]>
-rw-r--r--yjit/bindgen/src/main.rs4
1 files changed, 4 insertions, 0 deletions
@@ -264,6 +264,9 @@ fn main() {
.blocklist_type("rb_method_definition_.*") // Large struct with a bitfield and union of many types - don't import (yet?)
.opaque_type("rb_method_definition_.*")
// From vm_core.h
.allowlist_var("rb_mRubyVMFrozenCore")
.allowlist_var("VM_BLOCK_HANDLER_NONE")
@@ -304,6 +307,7 @@ fn main() {
.allowlist_type("rb_iseq_type")
// From yjit.c
.allowlist_function("rb_iseq_(get|set)_yjit_payload")
.allowlist_function("rb_iseq_pc_at_idx")
.allowlist_function("rb_iseq_opcode_at_pc")