mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 19:08:15 +00:00
chore(ops): inline FastFunction trait methods (#18226)
This commit is contained in:
parent
33b85a2b8e
commit
eb3d79ab1b
23 changed files with 69 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue