summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authorTakashi Kokubun <[email protected]>2024-01-23 11:36:23 -0800
committerGitHub <[email protected]>2024-01-23 19:36:23 +0000
commit27c1dd8634d34bfe3592151d66b410f28ca749ce (patch)
treeaccb9d7f9f44ec2ed2bc791c6bc928b0dd062d28 /compile.c
parent557b69e83b27dafea435719fc3afc2e67e155962 (diff)
YJIT: Allow inlining ISEQ calls with a block (#9622)
* YJIT: Allow inlining ISEQ calls with a block * Leave a TODO comment about u16 inline_block
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/compile.c b/compile.c
index b15c04a37a..e9c66bd62d 100644
--- a/compile.c
+++ b/compile.c
@@ -8637,6 +8637,9 @@ compile_builtin_attr(rb_iseq_t *iseq, const NODE *node)
if (strcmp(RSTRING_PTR(string), "leaf") == 0) {
ISEQ_BODY(iseq)->builtin_attrs |= BUILTIN_ATTR_LEAF;
}
+ else if (strcmp(RSTRING_PTR(string), "inline_block") == 0) {
+ ISEQ_BODY(iseq)->builtin_attrs |= BUILTIN_ATTR_INLINE_BLOCK;
+ }
else {
goto unknown_arg;
}