From 72af1496d9bc180b49d42976a31b331d0be1b975 Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 23 Sep 2022 09:35:45 +0530 Subject: perf: use fast ops for tty (#15976) --- ops/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ops') diff --git a/ops/lib.rs b/ops/lib.rs index c0552fe5c..c6b7816e9 100644 --- a/ops/lib.rs +++ b/ops/lib.rs @@ -629,6 +629,10 @@ fn can_be_fast_api(core: &TokenStream2, f: &syn::ItemFn) -> Option { args.push(arg); } None => match is_ref_slice(&ty) { + Some(SliceType::U32Mut) => { + args.push(quote! { #core::v8::fast_api::Type::TypedArray(#core::v8::fast_api::CType::Uint32) }); + slices.insert(pos, quote!(u32)); + } Some(_) => { args.push(quote! { #core::v8::fast_api::Type::TypedArray(#core::v8::fast_api::CType::Uint8) }); slices.insert(pos, quote!(u8)); -- cgit v1.2.3