diff options
author | Jean Boussier <[email protected]> | 2025-06-12 14:03:57 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2025-06-12 17:08:22 +0200 |
commit | e070d93573967423064707e09b566a33dd14a0e3 () | |
tree | 271f402df896036775bc36e172dbf517da8bccbd /yjit/src/cruby.rs | |
parent | 0292b702c4296f7dde2a05a7a027c3395fbd0f78 (diff) |
Get rid of `rb_shape_lookup`
Notes: Merged: https://.com/ruby/ruby/pull/13596
-rw-r--r-- | yjit/src/cruby.rs | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -448,18 +448,6 @@ impl VALUE { unsafe { rb_obj_shape_id(self) } } - pub fn shape_of(self) -> *mut rb_shape { - unsafe { - let shape = rb_shape_lookup(self.shape_id_of()); - - if shape.is_null() { - panic!("Shape should not be null"); - } else { - shape - } - } - } - pub fn embedded_p(self) -> bool { unsafe { FL_TEST_RAW(self, VALUE(ROBJECT_EMBED as usize)) != VALUE(0) |