summaryrefslogtreecommitdiff
path: root/yjit/src/cruby.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/src/cruby.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/src/cruby.rs5
1 files changed, 5 insertions, 0 deletions
@@ -116,6 +116,11 @@ extern "C" {
me: *const rb_callable_method_entry_t,
ci: *const rb_callinfo,
) -> *const rb_callable_method_entry_t;
pub fn rb_hash_empty_p(hash: VALUE) -> VALUE;
pub fn rb_yjit_str_concat_codepoint(str: VALUE, codepoint: VALUE);
pub fn rb_str_setbyte(str: VALUE, index: VALUE, value: VALUE) -> VALUE;