mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
Revert "Revert "This commit implements the Object Shapes technique in CRuby.""
This reverts commit 9a6803c90b
.
This commit is contained in:
parent
5ffbb2be18
commit
ad63b668e2
41 changed files with 2311 additions and 893 deletions
|
@ -40,6 +40,7 @@ fn main() {
|
|||
.header("internal.h")
|
||||
.header("internal/re.h")
|
||||
.header("include/ruby/ruby.h")
|
||||
.header("shape.h")
|
||||
.header("vm_core.h")
|
||||
.header("vm_callinfo.h")
|
||||
|
||||
|
@ -81,6 +82,12 @@ fn main() {
|
|||
// This function prints info about a value and is useful for debugging
|
||||
.allowlist_function("rb_obj_info_dump")
|
||||
|
||||
// From shape.h
|
||||
.allowlist_function("rb_shape_get_shape_id")
|
||||
.allowlist_function("rb_shape_get_shape_by_id")
|
||||
.allowlist_function("rb_shape_flags_mask")
|
||||
.allowlist_function("rb_shape_get_iv_index")
|
||||
|
||||
// From ruby/internal/intern/object.h
|
||||
.allowlist_function("rb_obj_is_kind_of")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue