diff options
| author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-11-26 20:48:17 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-11-27 04:48:17 +0000 |
| commit | 9ffc6acdbb3326dde74c803332547b0ae33e483a (patch) | |
| tree | e3d45392c1f6d41fac66f59c2f216f81b9a86c6e /ops/optimizer_tests/callback_options.out | |
| parent | 0012484f4f194664bea87879ab9f4f20f4ee86c6 (diff) | |
perf(ops): Reenable fast unit result optimization (#16827)
The optimization was missed in the optimizer rewrite
https://github.com/denoland/deno/pull/16514
Diffstat (limited to 'ops/optimizer_tests/callback_options.out')
| -rw-r--r-- | ops/optimizer_tests/callback_options.out | 7 |
1 files changed, 5 insertions, 2 deletions
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<deno_core::v8::Object>, - 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 } |
