From eb3d79ab1bcdc554acf03034606836443a0971e5 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Thu, 16 Mar 2023 18:50:41 +0530 Subject: chore(ops): inline FastFunction trait methods (#18226) --- ops/optimizer_tests/op_state_result.out | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ops/optimizer_tests/op_state_result.out') diff --git a/ops/optimizer_tests/op_state_result.out b/ops/optimizer_tests/op_state_result.out index 0b7301bfc..fb0fdb25f 100644 --- a/ops/optimizer_tests/op_state_result.out +++ b/ops/optimizer_tests/op_state_result.out @@ -102,14 +102,17 @@ struct foo_fast { _phantom: ::std::marker::PhantomData<()>, } impl<'scope> deno_core::v8::fast_api::FastFunction for foo_fast { + #[inline(always)] fn function(&self) -> *const ::std::ffi::c_void { foo_fast_fn as *const ::std::ffi::c_void } + #[inline(always)] fn args(&self) -> &'static [deno_core::v8::fast_api::Type] { use deno_core::v8::fast_api::Type::*; use deno_core::v8::fast_api::CType; &[V8Value, Uint32, Uint32, CallbackOptions] } + #[inline(always)] fn return_type(&self) -> deno_core::v8::fast_api::CType { deno_core::v8::fast_api::CType::Uint32 } -- cgit v1.2.3