summaryrefslogtreecommitdiff
path: root/zjit.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-06-04 09:05:55 +0200
committerJean Boussier <[email protected]>2025-06-04 13:13:50 +0200
commit675f33508cc08cbd17ff8dc1b14bbbe256a709ba (patch)
tree297157b7801b54afd789a032b616f15f8d16e671 /zjit.c
parent8d49c05c134702c321198b70fbbf34dd80cc1ba6 (diff)
Get rid of TOO_COMPLEX shape type
Instead it's now a `shape_id` flag. This allows to check if an object is complex without having to chase the `rb_shape_t` pointer.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13511
Diffstat (limited to 'zjit.c')
-rw-r--r--zjit.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/zjit.c b/zjit.c
index de83eaa08c..9218395582 100644
--- a/zjit.c
+++ b/zjit.c
@@ -330,6 +330,11 @@ rb_zjit_print_exception(void)
rb_warn("Ruby error: %"PRIsVALUE"", rb_funcall(exception, rb_intern("full_message"), 0));
}
+bool
+rb_zjit_shape_obj_too_complex_p(VALUE obj)
+{
+ return rb_shape_obj_too_complex_p(obj);
+}
+
// Preprocessed zjit.rb generated during build
#include "zjit.rbinc"
-