summaryrefslogtreecommitdiff
path: root/zjit/src/cruby.rs
diff options
context:
space:
mode:
Diffstat (limited to 'zjit/src/cruby.rs')
-rw-r--r--zjit/src/cruby.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/zjit/src/cruby.rs b/zjit/src/cruby.rs
index 14db7c57d7..eb3241b0a2 100644
--- a/zjit/src/cruby.rs
+++ b/zjit/src/cruby.rs
@@ -608,15 +608,13 @@ impl VALUE {
unsafe { rb_jit_class_fields_embedded_p(self) }
}
- /// Typed `T_DATA` made from `TypedData_Make_Struct()` (e.g. Thread, ARGF)
- pub fn typed_data_p(self) -> bool {
+ pub fn data_p(self) -> bool {
!self.special_const_p() &&
- self.builtin_type() == RUBY_T_DATA &&
- 0 != (self.builtin_flags() & RUBY_TYPED_FL_IS_TYPED_DATA.to_usize())
+ self.builtin_type() == RUBY_T_DATA
}
- pub fn typed_data_fields_embedded_p(self) -> bool {
- unsafe { rb_jit_typed_data_fields_embedded_p(self) }
+ pub fn data_fields_embedded_p(self) -> bool {
+ unsafe { rb_jit_data_fields_embedded_p(self) }
}
pub fn as_fixnum(self) -> i64 {