1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-23 07:44:48 -05:00
denoland-deno/ops/optimizer_tests
Kangwook Lee (이강욱) d8293cd8bc
fix(ops): quoting serde_v8::Value (#19593)
The following code:

```rust
use deno_core::op;

#[op]
fn ops_serde_v8(value: serde_v8::Value) {
    //
}

fn main() {
    //
}
```

...with the following `Cargo.toml`:

```toml
[package]
name = "playground"
version = "0.1.0"
edition = "2021"

[dependencies]
deno_core = "0.191.0"
serde_v8 = "0.102.0"
```

...will not compile with the error:

```
error[E0433]: failed to resolve: use of undeclared crate or module `v8`
 --> src/main.rs:3:1
  |
3 | #[op]
  | ^^^^^ use of undeclared crate or module `v8`
  |
  = note: this error originates in the attribute macro `op` (in Nightly builds, run with -Z macro-backtrace for more info)
```

This PR is fixing the above issue by properly quoting
`deno_core::v8::Value` instead of `v8::Value`.
2023-06-25 21:41:48 +00:00
..
async_nop.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
async_nop.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
async_nop.rs feat(ops): implement fast lazy async ops (#16579) 2022-11-11 19:14:53 +05:30
async_result.expected fix(ops): disallow memory slices as inputs to async ops (#16738) 2023-01-15 07:40:01 +00:00
async_result.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
async_result.rs fix(ops): disallow memory slices as inputs to async ops (#16738) 2023-01-15 07:40:01 +00:00
callback_options.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
callback_options.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
callback_options.rs refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
cow_str.expected fix(ops): fallback when FastApiOneByteString is not utf8 (#18518) 2023-03-31 17:46:25 +02:00
cow_str.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
cow_str.rs feat(ops): reland fast zero copy string arguments (#17996) 2023-03-03 19:04:10 +05:30
f64_slice.expected feat(ext/node): implement node:v8 (#17806) 2023-02-17 18:48:09 +05:30
f64_slice.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
f64_slice.rs feat(ext/node): implement node:v8 (#17806) 2023-02-17 18:48:09 +05:30
incompatible_1.expected refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
incompatible_1.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
incompatible_1.rs refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
issue16934.expected fix(ops): disallow auto-borrowing OpState across potential await point (#16952) 2022-12-05 21:40:22 +05:30
issue16934.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
issue16934.rs fix(ops): disallow auto-borrowing OpState across potential await point (#16952) 2022-12-05 21:40:22 +05:30
issue16934_fast.expected fix(ops): disallow auto-borrowing OpState across potential await point (#16952) 2022-12-05 21:40:22 +05:30
issue16934_fast.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
issue16934_fast.rs fix(ops): disallow auto-borrowing OpState across potential await point (#16952) 2022-12-05 21:40:22 +05:30
op_blob_revoke_object_url.expected fix(ops): fallback when FastApiOneByteString is not utf8 (#18518) 2023-03-31 17:46:25 +02:00
op_blob_revoke_object_url.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
op_blob_revoke_object_url.rs feat(ops): reland fast zero copy string arguments (#17996) 2023-03-03 19:04:10 +05:30
op_ffi_ptr_value.expected feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
op_ffi_ptr_value.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
op_ffi_ptr_value.rs feat(ext/ffi): Replace pointer integers with v8::External objects (#16889) 2023-02-22 19:32:38 +02:00
op_print.expected fix(ops): fallback when FastApiOneByteString is not utf8 (#18518) 2023-03-31 17:46:25 +02:00
op_print.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
op_print.rs feat(ops): reland fast zero copy string arguments (#17996) 2023-03-03 19:04:10 +05:30
op_state.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
op_state.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
op_state.rs refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
op_state_basic1.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
op_state_basic1.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
op_state_basic1.rs refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
op_state_generics.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
op_state_generics.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
op_state_generics.rs refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
op_state_result.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
op_state_result.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
op_state_result.rs refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
op_state_warning.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
op_state_warning.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
op_state_warning.rs feat(ops): implement fast lazy async ops (#16579) 2022-11-11 19:14:53 +05:30
op_state_with_transforms.expected perf(ops): Remove unnecessary fast call fallback options usage (#17585) 2023-01-29 19:35:08 +05:30
op_state_with_transforms.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
op_state_with_transforms.rs refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
opstate_with_arity.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
opstate_with_arity.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
opstate_with_arity.rs refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
option_arg.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
option_arg.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
option_arg.rs perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
owned_string.expected fix(ops): fallback when FastApiOneByteString is not utf8 (#18518) 2023-03-31 17:46:25 +02:00
owned_string.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
owned_string.rs feat(ops): reland fast zero copy string arguments (#17996) 2023-03-03 19:04:10 +05:30
param_mut_binding_warning.expected refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
param_mut_binding_warning.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
param_mut_binding_warning.rs refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
raw_ptr.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
raw_ptr.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
raw_ptr.rs feat(ops): support raw pointer arguments (#16826) 2022-11-26 20:07:43 +05:30
serde_v8_value.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
serde_v8_value.out fix(ops): quoting serde_v8::Value (#19593) 2023-06-25 21:41:48 +00:00
serde_v8_value.rs refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
strings.expected fix(ops): fallback when FastApiOneByteString is not utf8 (#18518) 2023-03-31 17:46:25 +02:00
strings.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
strings.rs feat(ops): reland fast zero copy string arguments (#17996) 2023-03-03 19:04:10 +05:30
strings_result.expected fix(ops): fallback when FastApiOneByteString is not utf8 (#18518) 2023-03-31 17:46:25 +02:00
strings_result.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
strings_result.rs feat(ops): reland fast zero copy string arguments (#17996) 2023-03-03 19:04:10 +05:30
u64_result.expected refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
u64_result.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
u64_result.rs refactor(ops): Rewrite fast call optimizer and codegen (#16514) 2022-11-10 17:23:31 +05:30
uint8array.expected perf(ops): Remove unnecessary fast call fallback options usage (#17585) 2023-01-29 19:35:08 +05:30
uint8array.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
uint8array.rs perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
unit_result.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
unit_result.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
unit_result.rs perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
unit_result2.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
unit_result2.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
unit_result2.rs feat: Stabilize Deno.TcpConn.setNoDelay() and Deno.TcpConn.setKeepAlive() (#17003) 2022-12-14 00:54:11 +01:00
unit_ret.expected perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
unit_ret.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
unit_ret.rs perf(ops): Reenable fast unit result optimization (#16827) 2022-11-27 04:48:17 +00:00
wasm_op.expected perf(ops): Remove unnecessary fast call fallback options usage (#17585) 2023-01-29 19:35:08 +05:30
wasm_op.out refactor(core): remove force_op_registration and cleanup JsRuntimeForSnapshot (#19353) 2023-06-03 14:22:32 -06:00
wasm_op.rs feat(ops): fast calls for Wasm (#16776) 2022-11-27 19:24:28 +05:30