diff options
author | Takashi Kokubun <[email protected]> | 2024-01-23 11:36:23 -0800 |
---|---|---|
committer | GitHub <[email protected]> | 2024-01-23 19:36:23 +0000 |
commit | 27c1dd8634d34bfe3592151d66b410f28ca749ce (patch) | |
tree | accb9d7f9f44ec2ed2bc791c6bc928b0dd062d28 /compile.c | |
parent | 557b69e83b27dafea435719fc3afc2e67e155962 (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.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |