summaryrefslogtreecommitdiff
path: root/ops/op2/generator_state.rs
diff options
context:
space:
mode:
authorMatt Mastracci <matthew@mastracci.com>2023-06-24 23:30:04 +0200
committerGitHub <noreply@github.com>2023-06-24 15:30:04 -0600
commita181ceb0e3791c842db6e8e6f528cf9ce320642a (patch)
tree0714537d8b91013f9253e65202e2dc596e977d01 /ops/op2/generator_state.rs
parent4a18c761351dccb146973793cf22e6efffff18bf (diff)
refactor(ops): op2 supports Result in slow call path (#19602)
Diffstat (limited to 'ops/op2/generator_state.rs')
-rw-r--r--ops/op2/generator_state.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ops/op2/generator_state.rs b/ops/op2/generator_state.rs
index 741d4f7f3..16249c217 100644
--- a/ops/op2/generator_state.rs
+++ b/ops/op2/generator_state.rs
@@ -19,6 +19,8 @@ pub struct GeneratorState {
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 `v8::ReturnValue` used in the slow function
pub retval: Ident,
/// The "slow" function (ie: the one that isn't a fastcall)
@@ -29,4 +31,6 @@ pub struct GeneratorState {
pub needs_args: bool,
pub needs_retval: bool,
pub needs_scope: bool,
+ pub needs_opstate: bool,
+ pub needs_opctx: bool,
}