diff options
author | Koichi Sasada <ko1@atdot.net> | 2023-03-10 01:30:30 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2023-03-23 14:03:12 +0900 |
commit | c9fd81b860b5ec193ba57c73c740955937452497 (patch) | |
tree | 37d7f0ac40f0122c222b1dc952ef0f0907440b0a /yjit/src/cruby_bindings.inc.rs | |
parent | e5a5e43c36443e06756aba6de95c94b41b910a82 (diff) | |
download | ruby-c9fd81b860b5ec193ba57c73c740955937452497.tar.gz |
`vm_call_single_noarg_inline_builtin`
If the iseq only contains `opt_invokebuiltin_delegate_leave` insn and
the builtin-function (bf) is inline-able, the caller doesn't need to
build a method frame.
`vm_call_single_noarg_inline_builtin` is fast path for such cases.
Diffstat (limited to 'yjit/src/cruby_bindings.inc.rs')
-rw-r--r-- | yjit/src/cruby_bindings.inc.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yjit/src/cruby_bindings.inc.rs b/yjit/src/cruby_bindings.inc.rs index 5d16ad13f2..2b98b73dba 100644 --- a/yjit/src/cruby_bindings.inc.rs +++ b/yjit/src/cruby_bindings.inc.rs @@ -664,6 +664,7 @@ pub struct iseq_inline_cvar_cache_entry { } pub const BUILTIN_ATTR_LEAF: rb_builtin_attr = 1; pub const BUILTIN_ATTR_NO_GC: rb_builtin_attr = 2; +pub const BUILTIN_ATTR_SINGLE_NOARG_INLINE: rb_builtin_attr = 4; pub type rb_builtin_attr = u32; #[repr(C)] #[derive(Debug, Copy, Clone)] |