summaryrefslogtreecommitdiff
path: root/ops/op2/generator_state.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-07-01 18:00:14 -0600
committerGitHub <noreply@github.com>2023-07-02 00:00:14 +0000
commite746b6d80654ba4e4e26370fe6e4f784ce841d92 (patch)
tree153ffad92a96126b9ab8e906dcdabf7648755931 /ops/op2/generator_state.rs
parentb9c0e7cd550ab14fa7da7e33ed87cbeeeb9785a0 (diff)
refactor(core): Extract deno_core (#19658)
`deno_core` is moving out! You'll find it at https://github.com/denoland/deno_core/ once this PR lands.
Diffstat (limited to 'ops/op2/generator_state.rs')
-rw-r--r--ops/op2/generator_state.rs40
1 files changed, 0 insertions, 40 deletions
diff --git a/ops/op2/generator_state.rs b/ops/op2/generator_state.rs
deleted file mode 100644
index e437ea47c..000000000
--- a/ops/op2/generator_state.rs
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
-use proc_macro2::Ident;
-use proc_macro2::TokenStream;
-
-pub struct GeneratorState {
- /// The path to the `deno_core` crate (either `deno_core` or `crate`, the latter used if the op is `(core)`).
- pub deno_core: TokenStream,
-
- /// Identifiers for each of the arguments of the original function
- pub args: Vec<Ident>,
- /// The new identifier for the original function's contents.
- pub call: Ident,
- /// The result of the `call` function
- pub result: Ident,
-
- /// The `v8::CallbackScope` used if necessary for the function.
- pub scope: Ident,
- /// The `v8::FunctionCallbackInfo` used to pass args into the slow function.
- pub info: Ident,
- /// The `v8::FunctionCallbackArguments` used to pass args into the slow function.
- pub fn_args: Ident,
- /// The `OpCtx` used for various information required for some ops.
- pub opctx: Ident,
- /// The `FastApiCallbackOptions` used in fast calls for fallback returns.
- pub fast_api_callback_options: Ident,
- /// The `v8::ReturnValue` used in the slow function
- pub retval: Ident,
- /// The "slow" function (ie: the one that isn't a fastcall)
- pub slow_function: Ident,
- /// The "fast" function (ie: a fastcall)
- pub fast_function: Ident,
-
- pub needs_args: bool,
- pub needs_retval: bool,
- pub needs_scope: bool,
- pub needs_opstate: bool,
- pub needs_opctx: bool,
- pub needs_fast_opctx: bool,
- pub needs_fast_api_callback_options: bool,
-}