Remove unused rb_shape_flag_shift and rb_shape_flag_mask
This commit is contained in:
parent
ebd4c7bb01
commit
41bacd9b0d
Notes:
git
2022-12-02 20:54:13 +00:00
12
shape.c
12
shape.c
@ -312,18 +312,6 @@ rb_shape_id_offset(void)
|
|||||||
return 8 - rb_shape_id_num_bits() / 8;
|
return 8 - rb_shape_id_num_bits() / 8;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t
|
|
||||||
rb_shape_flag_shift(void)
|
|
||||||
{
|
|
||||||
return SHAPE_FLAG_SHIFT;
|
|
||||||
}
|
|
||||||
|
|
||||||
uint64_t
|
|
||||||
rb_shape_flag_mask(void)
|
|
||||||
{
|
|
||||||
return SHAPE_FLAG_MASK;
|
|
||||||
}
|
|
||||||
|
|
||||||
rb_shape_t *
|
rb_shape_t *
|
||||||
rb_shape_rebuild_shape(rb_shape_t * initial_shape, rb_shape_t * dest_shape)
|
rb_shape_rebuild_shape(rb_shape_t * initial_shape, rb_shape_t * dest_shape)
|
||||||
{
|
{
|
||||||
|
2
shape.h
2
shape.h
@ -125,8 +125,6 @@ bool rb_shape_root_shape_p(rb_shape_t* shape);
|
|||||||
rb_shape_t * rb_shape_get_root_shape(void);
|
rb_shape_t * rb_shape_get_root_shape(void);
|
||||||
uint8_t rb_shape_id_num_bits(void);
|
uint8_t rb_shape_id_num_bits(void);
|
||||||
int32_t rb_shape_id_offset(void);
|
int32_t rb_shape_id_offset(void);
|
||||||
uint64_t rb_shape_flag_mask(void);
|
|
||||||
uint8_t rb_shape_flag_shift(void);
|
|
||||||
|
|
||||||
rb_shape_t* rb_shape_get_shape_by_id_without_assertion(shape_id_t shape_id);
|
rb_shape_t* rb_shape_get_shape_by_id_without_assertion(shape_id_t shape_id);
|
||||||
rb_shape_t * rb_shape_get_parent(rb_shape_t * shape);
|
rb_shape_t * rb_shape_get_parent(rb_shape_t * shape);
|
||||||
|
@ -90,8 +90,6 @@ fn main() {
|
|||||||
.allowlist_function("rb_shape_get_iv_index")
|
.allowlist_function("rb_shape_get_iv_index")
|
||||||
.allowlist_function("rb_shape_get_next")
|
.allowlist_function("rb_shape_get_next")
|
||||||
.allowlist_function("rb_shape_id")
|
.allowlist_function("rb_shape_id")
|
||||||
.allowlist_function("rb_shape_flag_mask")
|
|
||||||
.allowlist_function("rb_shape_flag_shift")
|
|
||||||
.allowlist_function("rb_shape_transition_shape_capa")
|
.allowlist_function("rb_shape_transition_shape_capa")
|
||||||
|
|
||||||
// From ruby/internal/intern/object.h
|
// From ruby/internal/intern/object.h
|
||||||
|
@ -449,12 +449,6 @@ extern "C" {
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn rb_shape_id_offset() -> i32;
|
pub fn rb_shape_id_offset() -> i32;
|
||||||
}
|
}
|
||||||
extern "C" {
|
|
||||||
pub fn rb_shape_flag_mask() -> u64;
|
|
||||||
}
|
|
||||||
extern "C" {
|
|
||||||
pub fn rb_shape_flag_shift() -> u8;
|
|
||||||
}
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
pub fn rb_shape_get_shape_by_id(shape_id: shape_id_t) -> *mut rb_shape_t;
|
pub fn rb_shape_get_shape_by_id(shape_id: shape_id_t) -> *mut rb_shape_t;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user