From 19d2d603e506b4d6b6aa1f88c092dbd59f4000b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 22 Jul 2024 17:10:41 +0100 Subject: [PATCH] chore: upgrade rusty_v8 to 0.98.2 (#835) Includes: - https://github.com/denoland/rusty_v8/pull/1532 - https://github.com/denoland/rusty_v8/pull/1533 Closes #834 --- Cargo.lock | 4 +- Cargo.toml | 2 +- core/runtime/ops_rust_to_v8.rs | 4 +- ops/op2/dispatch_async.rs | 2 +- ops/op2/dispatch_fast.rs | 4 +- ops/op2/dispatch_slow.rs | 4 +- ops/op2/test_cases/async/async_arg_return.out | 8 +++- .../async/async_arg_return_result.out | 8 +++- ops/op2/test_cases/async/async_cppgc.out | 24 +++++++--- ops/op2/test_cases/async/async_deferred.out | 12 +++-- ops/op2/test_cases/async/async_jsbuffer.out | 8 +++- ops/op2/test_cases/async/async_lazy.out | 12 +++-- .../test_cases/async/async_op_metadata.out | 16 +++++-- ops/op2/test_cases/async/async_opstate.out | 8 +++- ops/op2/test_cases/async/async_result.out | 8 +++- .../test_cases/async/async_result_impl.out | 8 +++- ops/op2/test_cases/async/async_result_smi.out | 8 +++- ops/op2/test_cases/async/async_v8_global.out | 8 +++- ops/op2/test_cases/async/async_void.out | 8 +++- ops/op2/test_cases/sync/add.out | 6 ++- ops/op2/test_cases/sync/add_options.out | 4 +- ops/op2/test_cases/sync/bigint.out | 6 ++- ops/op2/test_cases/sync/bool.out | 6 ++- ops/op2/test_cases/sync/bool_result.out | 12 +++-- ops/op2/test_cases/sync/buffers.out | 16 ++++--- ops/op2/test_cases/sync/buffers_copy.out | 12 +++-- ops/op2/test_cases/sync/buffers_out.out | 12 +++-- ops/op2/test_cases/sync/cfg.out | 12 +++-- ops/op2/test_cases/sync/clippy_allow.out | 12 +++-- ops/op2/test_cases/sync/cppgc_resource.out | 32 +++++++++----- ops/op2/test_cases/sync/doc_comment.out | 6 ++- ops/op2/test_cases/sync/fast_alternative.out | 20 ++++++--- ops/op2/test_cases/sync/from_v8.out | 4 +- ops/op2/test_cases/sync/generics.out | 18 +++++--- ops/op2/test_cases/sync/nofast.out | 4 +- ops/op2/test_cases/sync/op_state_attr.out | 12 +++-- ops/op2/test_cases/sync/op_state_rc.out | 12 +++-- ops/op2/test_cases/sync/op_state_ref.out | 44 +++++++++++++------ ops/op2/test_cases/sync/result_external.out | 12 +++-- ops/op2/test_cases/sync/result_primitive.out | 12 +++-- ops/op2/test_cases/sync/result_scope.out | 6 ++- ops/op2/test_cases/sync/result_void.out | 12 +++-- ops/op2/test_cases/sync/serde_v8.out | 4 +- ops/op2/test_cases/sync/smi.out | 16 ++++--- ops/op2/test_cases/sync/string_cow.out | 10 +++-- ops/op2/test_cases/sync/string_onebyte.out | 10 +++-- .../test_cases/sync/string_option_return.out | 4 +- ops/op2/test_cases/sync/string_owned.out | 10 +++-- ops/op2/test_cases/sync/string_ref.out | 10 +++-- ops/op2/test_cases/sync/string_return.out | 12 +++-- ops/op2/test_cases/sync/to_v8.out | 4 +- ops/op2/test_cases/sync/v8_global.out | 4 +- ops/op2/test_cases/sync/v8_handlescope.out | 4 +- ops/op2/test_cases/sync/v8_lifetime.out | 4 +- ops/op2/test_cases/sync/v8_ref_option.out | 6 ++- ops/op2/test_cases/sync/v8_string.out | 4 +- 56 files changed, 382 insertions(+), 168 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index e537aaf4b..44824cb2c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2727,9 +2727,9 @@ dependencies = [ [[package]] name = "v8" -version = "0.98.1" +version = "0.98.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d03f42deef61349d31ae100e7bcdcc5d9293c1126cb8aff8fd56ba3cba18340b" +checksum = "e9b8009c63eec162cbcc41aa4db66b81974f641d32a35b1a3198ec2ce4712d6b" dependencies = [ "bindgen", "bitflags", diff --git a/Cargo.toml b/Cargo.toml index f0b385f37..f8a11d974 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,7 +24,7 @@ deno_ops = { version = "0.172.0", path = "./ops" } serde_v8 = { version = "0.205.0", path = "./serde_v8" } deno_core_testing = { path = "./testing" } -v8 = { version = "0.98.1", default-features = false } +v8 = { version = "0.98.2", default-features = false } deno_ast = { version = "=0.40.0", features = ["transpiling"] } deno_unsync = "0.3.10" deno_core_icudata = "0.0.73" diff --git a/core/runtime/ops_rust_to_v8.rs b/core/runtime/ops_rust_to_v8.rs index 4489bb141..51cc18acd 100644 --- a/core/runtime/ops_rust_to_v8.rs +++ b/core/runtime/ops_rust_to_v8.rs @@ -360,7 +360,7 @@ to_v8!(RustToV8Marker>: |buf, scope| { }); to_v8_fallible!(Box<[u8]>: |buf, scope| { let len = buf.len(); - let ab = unsafe { v8::Local::cast(RustToV8Marker::::from(buf).to_v8(scope)) }; + let ab = unsafe { v8::Local::cast_unchecked(RustToV8Marker::::from(buf).to_v8(scope)) }; v8::Uint8Array::new(scope, ab, 0, len).ok_or_else(|| serde_v8::Error::Message("failed to allocate array".into())) }); to_v8!(RustToV8Marker>: |value, scope| { @@ -389,7 +389,7 @@ to_v8!(RustToV8Marker: |value, scope| { }); to_v8_fallible!(BytesMut: |buf, scope| { let len = buf.len(); - let ab = unsafe { v8::Local::cast(RustToV8Marker::::from(buf).to_v8(scope)) }; + let ab = unsafe { v8::Local::cast_unchecked(RustToV8Marker::::from(buf).to_v8(scope)) }; v8::Uint8Array::new(scope, ab, 0, len).ok_or_else(|| serde_v8::Error::Message("failed to allocate array".into())) }); diff --git a/ops/op2/dispatch_async.rs b/ops/op2/dispatch_async.rs index f9c2212e9..0cfe15578 100644 --- a/ops/op2/dispatch_async.rs +++ b/ops/op2/dispatch_async.rs @@ -170,7 +170,7 @@ pub(crate) fn generate_dispatch_async( let info: &'s _ = unsafe { &*#info }; let args = deno_core::v8::FunctionCallbackArguments::from_function_callback_info(info); let #opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()).value() + &*(deno_core::v8::Local::::cast_unchecked(args.data()).value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async(#opctx, deno_core::_ops::OpMetricsEvent::Dispatched); diff --git a/ops/op2/dispatch_fast.rs b/ops/op2/dispatch_fast.rs index 5680a7afe..4569c1db4 100644 --- a/ops/op2/dispatch_fast.rs +++ b/ops/op2/dispatch_fast.rs @@ -443,7 +443,7 @@ pub(crate) fn generate_dispatch_fast( generator_state.needs_fast_api_callback_options = true; gs_quote!(generator_state(opctx, fast_api_callback_options) => { let #opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(unsafe { #fast_api_callback_options.data.data }).value() + &*(deno_core::v8::Local::::cast_unchecked(unsafe { #fast_api_callback_options.data.data }).value() as *const deno_core::_ops::OpCtx) }; }) @@ -531,7 +531,7 @@ pub(crate) fn generate_dispatch_fast( let #fast_api_callback_options: &'s mut _ = unsafe { &mut *#fast_api_callback_options }; let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast( + &*(deno_core::v8::Local::::cast_unchecked( unsafe { #fast_api_callback_options.data.data } ).value() as *const deno_core::_ops::OpCtx) }; diff --git a/ops/op2/dispatch_slow.rs b/ops/op2/dispatch_slow.rs index 87e378524..31bdc0c3f 100644 --- a/ops/op2/dispatch_slow.rs +++ b/ops/op2/dispatch_slow.rs @@ -171,7 +171,7 @@ pub(crate) fn generate_dispatch_slow( let info: &'s _ = unsafe { &*#info }; let args = deno_core::v8::FunctionCallbackArguments::from_function_callback_info(info); let #opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()).value() + &*(deno_core::v8::Local::::cast_unchecked(args.data()).value() as *const deno_core::_ops::OpCtx) }; @@ -220,7 +220,7 @@ pub(crate) fn with_opctx(generator_state: &mut GeneratorState) -> TokenStream { generator_state.needs_args = true; gs_quote!(generator_state(opctx, fn_args) => (let #opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(#fn_args.data()).value() + &*(deno_core::v8::Local::::cast_unchecked(#fn_args.data()).value() as *const deno_core::_ops::OpCtx) };) ) diff --git a/ops/op2/test_cases/async/async_arg_return.out b/ops/op2/test_cases/async/async_arg_return.out index 71b776122..0214fcbd3 100644 --- a/ops/op2/test_cases/async/async_arg_return.out +++ b/ops/op2/test_cases/async/async_arg_return.out @@ -37,7 +37,9 @@ pub const fn op_async() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -84,7 +86,9 @@ pub const fn op_async() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_arg_return_result.out b/ops/op2/test_cases/async/async_arg_return_result.out index 599e2ade2..4721cc44f 100644 --- a/ops/op2/test_cases/async/async_arg_return_result.out +++ b/ops/op2/test_cases/async/async_arg_return_result.out @@ -37,7 +37,9 @@ pub const fn op_async() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -101,7 +103,9 @@ pub const fn op_async() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_cppgc.out b/ops/op2/test_cases/async/async_cppgc.out index 07aaf0c61..1e5fad2cf 100644 --- a/ops/op2/test_cases/async/async_cppgc.out +++ b/ops/op2/test_cases/async/async_cppgc.out @@ -38,7 +38,9 @@ const fn op_make_cppgc_object() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -87,7 +89,9 @@ const fn op_make_cppgc_object() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( @@ -157,7 +161,9 @@ const fn op_use_cppgc_object() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -208,7 +214,9 @@ const fn op_use_cppgc_object() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( @@ -276,7 +284,9 @@ const fn op_use_optional_cppgc_object() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -331,7 +341,9 @@ const fn op_use_optional_cppgc_object() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_deferred.out b/ops/op2/test_cases/async/async_deferred.out index c24579f33..26dc5abdc 100644 --- a/ops/op2/test_cases/async/async_deferred.out +++ b/ops/op2/test_cases/async/async_deferred.out @@ -54,7 +54,7 @@ pub const fn op_async_deferred() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -86,7 +86,7 @@ pub const fn op_async_deferred() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -112,7 +112,9 @@ pub const fn op_async_deferred() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -140,7 +142,9 @@ pub const fn op_async_deferred() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_jsbuffer.out b/ops/op2/test_cases/async/async_jsbuffer.out index 36bdb0c2e..f7f2199e3 100644 --- a/ops/op2/test_cases/async/async_jsbuffer.out +++ b/ops/op2/test_cases/async/async_jsbuffer.out @@ -38,7 +38,9 @@ pub const fn op_async_v8_buffer() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -108,7 +110,9 @@ pub const fn op_async_v8_buffer() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_lazy.out b/ops/op2/test_cases/async/async_lazy.out index fb50896af..dad4d37e9 100644 --- a/ops/op2/test_cases/async/async_lazy.out +++ b/ops/op2/test_cases/async/async_lazy.out @@ -54,7 +54,7 @@ pub const fn op_async_lazy() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -86,7 +86,7 @@ pub const fn op_async_lazy() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -112,7 +112,9 @@ pub const fn op_async_lazy() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -140,7 +142,9 @@ pub const fn op_async_lazy() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_op_metadata.out b/ops/op2/test_cases/async/async_op_metadata.out index 1d32a07f6..13249abbd 100644 --- a/ops/op2/test_cases/async/async_op_metadata.out +++ b/ops/op2/test_cases/async/async_op_metadata.out @@ -39,7 +39,9 @@ const fn op_blob_read_part() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -70,7 +72,9 @@ const fn op_blob_read_part() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( @@ -141,7 +145,9 @@ const fn op_broadcast_recv() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -172,7 +178,9 @@ const fn op_broadcast_recv() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_opstate.out b/ops/op2/test_cases/async/async_opstate.out index cb0c0262e..188954ecc 100644 --- a/ops/op2/test_cases/async/async_opstate.out +++ b/ops/op2/test_cases/async/async_opstate.out @@ -37,7 +37,9 @@ pub const fn op_async_opstate() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let opstate = &opctx.state; @@ -89,7 +91,9 @@ pub const fn op_async_opstate() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_result.out b/ops/op2/test_cases/async/async_result.out index b30f78b29..927a70439 100644 --- a/ops/op2/test_cases/async/async_result.out +++ b/ops/op2/test_cases/async/async_result.out @@ -37,7 +37,9 @@ pub const fn op_async() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -85,7 +87,9 @@ pub const fn op_async() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_result_impl.out b/ops/op2/test_cases/async/async_result_impl.out index d97d1dd27..7ceecb572 100644 --- a/ops/op2/test_cases/async/async_result_impl.out +++ b/ops/op2/test_cases/async/async_result_impl.out @@ -37,7 +37,9 @@ pub const fn op_async_result_impl() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -115,7 +117,9 @@ pub const fn op_async_result_impl() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_result_smi.out b/ops/op2/test_cases/async/async_result_smi.out index fb136c151..0a7a02457 100644 --- a/ops/op2/test_cases/async/async_result_smi.out +++ b/ops/op2/test_cases/async/async_result_smi.out @@ -37,7 +37,9 @@ pub const fn op_async() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -117,7 +119,9 @@ pub const fn op_async() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_v8_global.out b/ops/op2/test_cases/async/async_v8_global.out index 4ebaa2216..0c4d212ea 100644 --- a/ops/op2/test_cases/async/async_v8_global.out +++ b/ops/op2/test_cases/async/async_v8_global.out @@ -38,7 +38,9 @@ pub const fn op_async_v8_global() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -87,7 +89,9 @@ pub const fn op_async_v8_global() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/async/async_void.out b/ops/op2/test_cases/async/async_void.out index c9cfbd052..8f9f32f61 100644 --- a/ops/op2/test_cases/async/async_void.out +++ b/ops/op2/test_cases/async/async_void.out @@ -37,7 +37,9 @@ pub const fn op_async() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -68,7 +70,9 @@ pub const fn op_async() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_async( diff --git a/ops/op2/test_cases/sync/add.out b/ops/op2/test_cases/sync/add.out index b48ddb2f7..0cc939755 100644 --- a/ops/op2/test_cases/sync/add.out +++ b/ops/op2/test_cases/sync/add.out @@ -55,7 +55,7 @@ const fn op_add() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -144,7 +144,9 @@ const fn op_add() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/add_options.out b/ops/op2/test_cases/sync/add_options.out index d976a8f6a..110fd7d79 100644 --- a/ops/op2/test_cases/sync/add_options.out +++ b/ops/op2/test_cases/sync/add_options.out @@ -89,7 +89,9 @@ pub const fn op_test_add_option() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/bigint.out b/ops/op2/test_cases/sync/bigint.out index 2c2480456..10306228f 100644 --- a/ops/op2/test_cases/sync/bigint.out +++ b/ops/op2/test_cases/sync/bigint.out @@ -53,7 +53,7 @@ pub const fn op_bigint() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -104,7 +104,9 @@ pub const fn op_bigint() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/bool.out b/ops/op2/test_cases/sync/bool.out index e8ac8a678..02535c05e 100644 --- a/ops/op2/test_cases/sync/bool.out +++ b/ops/op2/test_cases/sync/bool.out @@ -54,7 +54,7 @@ pub const fn op_bool() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -115,7 +115,9 @@ pub const fn op_bool() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/bool_result.out b/ops/op2/test_cases/sync/bool_result.out index e68b19cc4..75f049a72 100644 --- a/ops/op2/test_cases/sync/bool_result.out +++ b/ops/op2/test_cases/sync/bool_result.out @@ -54,7 +54,7 @@ pub const fn op_bool() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -86,7 +86,7 @@ pub const fn op_bool() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -119,7 +119,9 @@ pub const fn op_bool() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; if let Some(err) = unsafe { opctx.unsafely_take_last_error_for_ops_only() } { @@ -166,7 +168,9 @@ pub const fn op_bool() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/buffers.out b/ops/op2/test_cases/sync/buffers.out index c45277658..5386a1e09 100644 --- a/ops/op2/test_cases/sync/buffers.out +++ b/ops/op2/test_cases/sync/buffers.out @@ -70,7 +70,7 @@ const fn op_buffers() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -255,7 +255,9 @@ const fn op_buffers() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -355,7 +357,7 @@ const fn op_buffers_32() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -540,7 +542,9 @@ const fn op_buffers_32() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -684,7 +688,9 @@ const fn op_buffers_option() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/buffers_copy.out b/ops/op2/test_cases/sync/buffers_copy.out index 5cf6887f3..eac0b7145 100644 --- a/ops/op2/test_cases/sync/buffers_copy.out +++ b/ops/op2/test_cases/sync/buffers_copy.out @@ -67,7 +67,7 @@ const fn op_buffers() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -208,7 +208,9 @@ const fn op_buffers() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -302,7 +304,7 @@ const fn op_buffers_32() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -415,7 +417,9 @@ const fn op_buffers_32() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/buffers_out.out b/ops/op2/test_cases/sync/buffers_out.out index 2c27d9fdd..b03fb5222 100644 --- a/ops/op2/test_cases/sync/buffers_out.out +++ b/ops/op2/test_cases/sync/buffers_out.out @@ -87,7 +87,9 @@ const fn op_buffers() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -216,7 +218,9 @@ const fn op_buffers_option() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -331,7 +335,9 @@ const fn op_arraybuffers() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/cfg.out b/ops/op2/test_cases/sync/cfg.out index 919b70698..c69dba4cd 100644 --- a/ops/op2/test_cases/sync/cfg.out +++ b/ops/op2/test_cases/sync/cfg.out @@ -55,7 +55,7 @@ pub const fn op_maybe_windows() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -105,7 +105,9 @@ pub const fn op_maybe_windows() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -192,7 +194,7 @@ pub const fn op_maybe_windows() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -242,7 +244,9 @@ pub const fn op_maybe_windows() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/clippy_allow.out b/ops/op2/test_cases/sync/clippy_allow.out index 3fd443775..230ff14cc 100644 --- a/ops/op2/test_cases/sync/clippy_allow.out +++ b/ops/op2/test_cases/sync/clippy_allow.out @@ -55,7 +55,7 @@ pub const fn op_extra_annotation() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -105,7 +105,9 @@ pub const fn op_extra_annotation() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -190,7 +192,7 @@ pub const fn op_clippy_internal() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -240,7 +242,9 @@ pub const fn op_clippy_internal() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/cppgc_resource.out b/ops/op2/test_cases/sync/cppgc_resource.out index f4d1b52ca..d965c8ebf 100644 --- a/ops/op2/test_cases/sync/cppgc_resource.out +++ b/ops/op2/test_cases/sync/cppgc_resource.out @@ -54,7 +54,7 @@ const fn op_cppgc_object() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -148,7 +148,9 @@ const fn op_cppgc_object() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -232,7 +234,7 @@ const fn op_option_cppgc_object() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -334,7 +336,9 @@ const fn op_option_cppgc_object() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -422,7 +426,9 @@ const fn op_make_cppgc_object() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -508,7 +514,7 @@ const fn op_use_cppgc_object() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -602,7 +608,9 @@ const fn op_use_cppgc_object() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -693,7 +701,9 @@ const fn op_make_cppgc_object_option() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -779,7 +789,7 @@ const fn op_use_cppgc_object_option() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -873,7 +883,9 @@ const fn op_use_cppgc_object_option() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/doc_comment.out b/ops/op2/test_cases/sync/doc_comment.out index 6bf740eec..b2213656f 100644 --- a/ops/op2/test_cases/sync/doc_comment.out +++ b/ops/op2/test_cases/sync/doc_comment.out @@ -54,7 +54,7 @@ pub const fn op_has_doc_comment() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -104,7 +104,9 @@ pub const fn op_has_doc_comment() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/fast_alternative.out b/ops/op2/test_cases/sync/fast_alternative.out index 0411e0c1e..3ab5da75c 100644 --- a/ops/op2/test_cases/sync/fast_alternative.out +++ b/ops/op2/test_cases/sync/fast_alternative.out @@ -82,7 +82,9 @@ const fn op_slow() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -169,7 +171,7 @@ const fn op_fast() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -258,7 +260,9 @@ const fn op_fast() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -372,7 +376,9 @@ const fn op_slow_generic() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -459,7 +465,7 @@ const fn op_fast_generic() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -548,7 +554,9 @@ const fn op_fast_generic() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/from_v8.out b/ops/op2/test_cases/sync/from_v8.out index 0e7b574e2..432025d12 100644 --- a/ops/op2/test_cases/sync/from_v8.out +++ b/ops/op2/test_cases/sync/from_v8.out @@ -69,7 +69,9 @@ pub const fn op_from_v8_arg() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/generics.out b/ops/op2/test_cases/sync/generics.out index 1e893d00b..847d4bfb0 100644 --- a/ops/op2/test_cases/sync/generics.out +++ b/ops/op2/test_cases/sync/generics.out @@ -53,7 +53,7 @@ pub const fn op_generics() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -103,7 +103,9 @@ pub const fn op_generics() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -186,7 +188,7 @@ pub const fn op_generics_static() -> ::deno_core::_ops::OpDe let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -236,7 +238,9 @@ pub const fn op_generics_static() -> ::deno_core::_ops::OpDe info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -319,7 +323,7 @@ pub const fn op_generics_static_where() -> ::deno_core::_ops let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -369,7 +373,9 @@ pub const fn op_generics_static_where() -> ::deno_core::_ops info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/nofast.out b/ops/op2/test_cases/sync/nofast.out index 8ad81088a..02b410c47 100644 --- a/ops/op2/test_cases/sync/nofast.out +++ b/ops/op2/test_cases/sync/nofast.out @@ -82,7 +82,9 @@ const fn op_nofast() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/op_state_attr.out b/ops/op2/test_cases/sync/op_state_attr.out index 43aad7645..35e6b78a5 100644 --- a/ops/op2/test_cases/sync/op_state_attr.out +++ b/ops/op2/test_cases/sync/op_state_attr.out @@ -53,7 +53,7 @@ const fn op_state_rc() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -84,7 +84,7 @@ const fn op_state_rc() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -109,7 +109,9 @@ const fn op_state_rc() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let opstate = &opctx.state; @@ -135,7 +137,9 @@ const fn op_state_rc() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/op_state_rc.out b/ops/op2/test_cases/sync/op_state_rc.out index eb683ea0d..3f2bd1a09 100644 --- a/ops/op2/test_cases/sync/op_state_rc.out +++ b/ops/op2/test_cases/sync/op_state_rc.out @@ -53,7 +53,7 @@ const fn op_state_rc() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -84,7 +84,7 @@ const fn op_state_rc() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -106,7 +106,9 @@ const fn op_state_rc() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let opstate = &opctx.state; @@ -129,7 +131,9 @@ const fn op_state_rc() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/op_state_ref.out b/ops/op2/test_cases/sync/op_state_ref.out index a6bbe69fd..2fd0bb04e 100644 --- a/ops/op2/test_cases/sync/op_state_ref.out +++ b/ops/op2/test_cases/sync/op_state_ref.out @@ -53,7 +53,7 @@ const fn op_state_ref() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -84,7 +84,7 @@ const fn op_state_ref() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -106,7 +106,9 @@ const fn op_state_ref() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let opstate = &opctx.state; @@ -129,7 +131,9 @@ const fn op_state_ref() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -212,7 +216,7 @@ const fn op_state_mut() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -243,7 +247,7 @@ const fn op_state_mut() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -265,7 +269,9 @@ const fn op_state_mut() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let opstate = &opctx.state; @@ -288,7 +294,9 @@ const fn op_state_mut() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -355,7 +363,9 @@ const fn op_state_and_v8() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let mut scope = unsafe { &mut *opctx.isolate }; @@ -395,7 +405,9 @@ const fn op_state_and_v8() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -479,7 +491,7 @@ const fn op_state_and_v8_local() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -511,7 +523,7 @@ const fn op_state_and_v8_local() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; let result = { @@ -540,7 +552,9 @@ const fn op_state_and_v8_local() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let opstate = &opctx.state; @@ -579,7 +593,9 @@ const fn op_state_and_v8_local() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/result_external.out b/ops/op2/test_cases/sync/result_external.out index 84bfab461..bcc4341f7 100644 --- a/ops/op2/test_cases/sync/result_external.out +++ b/ops/op2/test_cases/sync/result_external.out @@ -53,7 +53,7 @@ pub const fn op_external_with_result() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -84,7 +84,7 @@ pub const fn op_external_with_result() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -115,7 +115,9 @@ pub const fn op_external_with_result() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; if let Some(err) = unsafe { opctx.unsafely_take_last_error_for_ops_only() } { @@ -165,7 +167,9 @@ pub const fn op_external_with_result() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/result_primitive.out b/ops/op2/test_cases/sync/result_primitive.out index a4e22165e..d0151cd08 100644 --- a/ops/op2/test_cases/sync/result_primitive.out +++ b/ops/op2/test_cases/sync/result_primitive.out @@ -53,7 +53,7 @@ pub const fn op_u32_with_result() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -84,7 +84,7 @@ pub const fn op_u32_with_result() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -114,7 +114,9 @@ pub const fn op_u32_with_result() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; if let Some(err) = unsafe { opctx.unsafely_take_last_error_for_ops_only() } { @@ -163,7 +165,9 @@ pub const fn op_u32_with_result() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/result_scope.out b/ops/op2/test_cases/sync/result_scope.out index f9f16583c..539529532 100644 --- a/ops/op2/test_cases/sync/result_scope.out +++ b/ops/op2/test_cases/sync/result_scope.out @@ -47,7 +47,7 @@ pub const fn op_void_with_result() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(args.data()) + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let err = err.into(); @@ -74,7 +74,9 @@ pub const fn op_void_with_result() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/result_void.out b/ops/op2/test_cases/sync/result_void.out index c37b3c0c7..36af2ec6e 100644 --- a/ops/op2/test_cases/sync/result_void.out +++ b/ops/op2/test_cases/sync/result_void.out @@ -53,7 +53,7 @@ pub const fn op_void_with_result() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -84,7 +84,7 @@ pub const fn op_void_with_result() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; let result = { Self::call() }; @@ -114,7 +114,9 @@ pub const fn op_void_with_result() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; if let Some(err) = unsafe { opctx.unsafely_take_last_error_for_ops_only() } { @@ -163,7 +165,9 @@ pub const fn op_void_with_result() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/serde_v8.out b/ops/op2/test_cases/sync/serde_v8.out index 44aaeb9e9..2e269629f 100644 --- a/ops/op2/test_cases/sync/serde_v8.out +++ b/ops/op2/test_cases/sync/serde_v8.out @@ -87,7 +87,9 @@ pub const fn op_serde_v8() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/smi.out b/ops/op2/test_cases/sync/smi.out index 0c8e9d25b..66c245779 100644 --- a/ops/op2/test_cases/sync/smi.out +++ b/ops/op2/test_cases/sync/smi.out @@ -64,7 +64,7 @@ const fn op_smi_unsigned_return() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -191,7 +191,9 @@ const fn op_smi_unsigned_return() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -287,7 +289,7 @@ const fn op_smi_signed_return() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -414,7 +416,9 @@ const fn op_smi_signed_return() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -521,7 +525,9 @@ const fn op_smi_option() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/string_cow.out b/ops/op2/test_cases/sync/string_cow.out index 30701d3de..c0e80e8f7 100644 --- a/ops/op2/test_cases/sync/string_cow.out +++ b/ops/op2/test_cases/sync/string_cow.out @@ -54,7 +54,7 @@ const fn op_string_cow() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -102,7 +102,9 @@ const fn op_string_cow() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let mut scope = unsafe { &mut *opctx.isolate }; @@ -129,7 +131,9 @@ const fn op_string_cow() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/string_onebyte.out b/ops/op2/test_cases/sync/string_onebyte.out index a4640ec3c..4abc6cb23 100644 --- a/ops/op2/test_cases/sync/string_onebyte.out +++ b/ops/op2/test_cases/sync/string_onebyte.out @@ -54,7 +54,7 @@ const fn op_string_onebyte() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -96,7 +96,9 @@ const fn op_string_onebyte() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let mut scope = unsafe { &mut *opctx.isolate }; @@ -136,7 +138,9 @@ const fn op_string_onebyte() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/string_option_return.out b/ops/op2/test_cases/sync/string_option_return.out index 1fc02fc29..25056faf4 100644 --- a/ops/op2/test_cases/sync/string_option_return.out +++ b/ops/op2/test_cases/sync/string_option_return.out @@ -73,7 +73,9 @@ pub const fn op_string_return() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/string_owned.out b/ops/op2/test_cases/sync/string_owned.out index d5fa0724e..c49d7317b 100644 --- a/ops/op2/test_cases/sync/string_owned.out +++ b/ops/op2/test_cases/sync/string_owned.out @@ -54,7 +54,7 @@ const fn op_string_owned() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -96,7 +96,9 @@ const fn op_string_owned() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let mut scope = unsafe { &mut *opctx.isolate }; @@ -120,7 +122,9 @@ const fn op_string_owned() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/string_ref.out b/ops/op2/test_cases/sync/string_ref.out index 75019c506..4b0b33023 100644 --- a/ops/op2/test_cases/sync/string_ref.out +++ b/ops/op2/test_cases/sync/string_ref.out @@ -54,7 +54,7 @@ const fn op_string_owned() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -102,7 +102,9 @@ const fn op_string_owned() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; let mut scope = unsafe { &mut *opctx.isolate }; @@ -129,7 +131,9 @@ const fn op_string_owned() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/string_return.out b/ops/op2/test_cases/sync/string_return.out index 148c3f180..da6d2b278 100644 --- a/ops/op2/test_cases/sync/string_return.out +++ b/ops/op2/test_cases/sync/string_return.out @@ -62,7 +62,9 @@ pub const fn op_string_return() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -156,7 +158,9 @@ pub const fn op_string_return_ref() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( @@ -250,7 +254,9 @@ pub const fn op_string_return_cow() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/to_v8.out b/ops/op2/test_cases/sync/to_v8.out index 6404902cf..4c84450a8 100644 --- a/ops/op2/test_cases/sync/to_v8.out +++ b/ops/op2/test_cases/sync/to_v8.out @@ -68,7 +68,9 @@ pub const fn op_to_v8_return() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/v8_global.out b/ops/op2/test_cases/sync/v8_global.out index a78321367..eb3b1e07b 100644 --- a/ops/op2/test_cases/sync/v8_global.out +++ b/ops/op2/test_cases/sync/v8_global.out @@ -71,7 +71,9 @@ pub const fn op_global() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/v8_handlescope.out b/ops/op2/test_cases/sync/v8_handlescope.out index d4f5da101..ad4aa9b17 100644 --- a/ops/op2/test_cases/sync/v8_handlescope.out +++ b/ops/op2/test_cases/sync/v8_handlescope.out @@ -71,7 +71,9 @@ const fn op_handlescope() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/v8_lifetime.out b/ops/op2/test_cases/sync/v8_lifetime.out index 1d0ee896c..7c5de2460 100644 --- a/ops/op2/test_cases/sync/v8_lifetime.out +++ b/ops/op2/test_cases/sync/v8_lifetime.out @@ -70,7 +70,9 @@ pub const fn op_v8_lifetime() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/v8_ref_option.out b/ops/op2/test_cases/sync/v8_ref_option.out index 2b6310935..e98ad9468 100644 --- a/ops/op2/test_cases/sync/v8_ref_option.out +++ b/ops/op2/test_cases/sync/v8_ref_option.out @@ -65,7 +65,7 @@ pub const fn op_v8_lifetime() -> ::deno_core::_ops::OpDecl { let opctx: &'s _ = unsafe { &*(deno_core::v8::Local::< deno_core::v8::External, - >::cast(unsafe { fast_api_callback_options.data.data }) + >::cast_unchecked(unsafe { fast_api_callback_options.data.data }) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_fast( @@ -188,7 +188,9 @@ pub const fn op_v8_lifetime() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow( diff --git a/ops/op2/test_cases/sync/v8_string.out b/ops/op2/test_cases/sync/v8_string.out index 0d8d5fd6a..6f972e215 100644 --- a/ops/op2/test_cases/sync/v8_string.out +++ b/ops/op2/test_cases/sync/v8_string.out @@ -86,7 +86,9 @@ const fn op_v8_string() -> ::deno_core::_ops::OpDecl { info, ); let opctx: &'s _ = unsafe { - &*(deno_core::v8::Local::::cast(args.data()) + &*(deno_core::v8::Local::< + deno_core::v8::External, + >::cast_unchecked(args.data()) .value() as *const deno_core::_ops::OpCtx) }; deno_core::_ops::dispatch_metrics_slow(