diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2023-03-16 18:50:41 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-16 13:20:41 +0000 |
commit | eb3d79ab1bcdc554acf03034606836443a0971e5 (patch) | |
tree | 1e24e6c0d8888858173f08ced0b6f53e3f06b77a /ops/fast_call.rs | |
parent | 33b85a2b8e54e38d735233b0f026111d905ea5d2 (diff) |
chore(ops): inline FastFunction trait methods (#18226)
Diffstat (limited to 'ops/fast_call.rs')
-rw-r--r-- | ops/fast_call.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ops/fast_call.rs b/ops/fast_call.rs index 0ddf5c878..a6162a019 100644 --- a/ops/fast_call.rs +++ b/ops/fast_call.rs @@ -376,11 +376,13 @@ pub(crate) fn generate( brace_token: Default::default(), items: vec![ parse_quote! { + #[inline(always)] fn function(&self) -> *const ::std::ffi::c_void { #fast_fn_ident #caller_generics as *const ::std::ffi::c_void } }, parse_quote! { + #[inline(always)] fn args(&self) -> &'static [#core::v8::fast_api::Type] { use #core::v8::fast_api::Type::*; use #core::v8::fast_api::CType; @@ -388,6 +390,7 @@ pub(crate) fn generate( } }, parse_quote! { + #[inline(always)] fn return_type(&self) -> #core::v8::fast_api::CType { #core::v8::fast_api::CType::#output_variant } |