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/async_nop.out | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ops/optimizer_tests/async_nop.out') diff --git a/ops/optimizer_tests/async_nop.out b/ops/optimizer_tests/async_nop.out index 1fed63735..d1e953406 100644 --- a/ops/optimizer_tests/async_nop.out +++ b/ops/optimizer_tests/async_nop.out @@ -85,14 +85,17 @@ struct op_void_async_fast { _phantom: ::std::marker::PhantomData<()>, } impl<'scope> deno_core::v8::fast_api::FastFunction for op_void_async_fast { + #[inline(always)] fn function(&self) -> *const ::std::ffi::c_void { op_void_async_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, Int32, CallbackOptions] } + #[inline(always)] fn return_type(&self) -> deno_core::v8::fast_api::CType { deno_core::v8::fast_api::CType::Void } -- cgit v1.2.3