diff options
author | Jean Boussier <[email protected]> | 2025-06-04 09:05:55 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2025-06-04 13:13:50 +0200 |
commit | 675f33508cc08cbd17ff8dc1b14bbbe256a709ba (patch) | |
tree | 297157b7801b54afd789a032b616f15f8d16e671 /zjit.c | |
parent | 8d49c05c134702c321198b70fbbf34dd80cc1ba6 (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.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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" - |