From 9ffc6acdbb3326dde74c803332547b0ae33e483a Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Sat, 26 Nov 2022 20:48:17 -0800 Subject: perf(ops): Reenable fast unit result optimization (#16827) The optimization was missed in the optimizer rewrite https://github.com/denoland/deno/pull/16514 --- ops/optimizer_tests/callback_options.out | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'ops/optimizer_tests/callback_options.out') diff --git a/ops/optimizer_tests/callback_options.out b/ops/optimizer_tests/callback_options.out index 020cc4a3e..81745375d 100644 --- a/ops/optimizer_tests/callback_options.out +++ b/ops/optimizer_tests/callback_options.out @@ -61,7 +61,7 @@ impl<'scope> deno_core::v8::fast_api::FastFunction for op_fallback_fast { 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] + &[V8Value, CallbackOptions] } fn return_type(&self) -> deno_core::v8::fast_api::CType { deno_core::v8::fast_api::CType::Void @@ -69,10 +69,13 @@ impl<'scope> deno_core::v8::fast_api::FastFunction for op_fallback_fast { } fn op_fallback_fast_fn<'scope>( _: deno_core::v8::Local, - options: Option<&mut FastApiCallbackOptions>, + fast_api_callback_options: *mut deno_core::v8::fast_api::FastApiCallbackOptions, ) -> () { use deno_core::v8; use deno_core::_ops; + let __opts: &mut v8::fast_api::FastApiCallbackOptions = unsafe { + &mut *fast_api_callback_options + }; let result = op_fallback::call(options); result } -- cgit v1.2.3