summaryrefslogtreecommitdiff
path: root/yjit.c
diff options
context:
space:
mode:
authorRandy Stauner <[email protected]>2024-08-27 19:24:17 -0700
committerGitHub <[email protected]>2024-08-27 22:24:17 -0400
commit942317ebf8a5e4a85189411ee4d48267f21ecca5 (patch)
tree03554f6160f2b4f86282ebdd2eeef3d8e449c6f6 /yjit.c
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
Notes: Merged-By: maximecb <[email protected]>
Diffstat (limited to 'yjit.c')
-rw-r--r--yjit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/yjit.c b/yjit.c
index a0af72b3ca..fe2301a1a6 100644
--- a/yjit.c
+++ b/yjit.c
@@ -1165,8 +1165,8 @@ rb_yjit_invalidate_all_method_lookup_assumptions(void)
}
// Number of object shapes, which might be useful for investigating YJIT exit reasons.
-static VALUE
-object_shape_count(rb_execution_context_t *ec, VALUE self)
+VALUE
+rb_object_shape_count(void)
{
// next_shape_id starts from 0, so it's the same as the count
return ULONG2NUM((unsigned long)GET_SHAPE_TREE()->next_shape_id);