From 4db650ddd57b85475d71c0b9fc84d37becab9d6a Mon Sep 17 00:00:00 2001 From: Divy Srivastava Date: Fri, 22 Jul 2022 19:06:32 +0530 Subject: Revert "feat(ops): V8 Fast Calls (#15122)" (#15276) This reverts commit 03dc3b8972f460e40d0b75fc3207cae9fe4f60da. --- core/extensions.rs | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'core/extensions.rs') diff --git a/core/extensions.rs b/core/extensions.rs index 39b4471bf..ce6957875 100644 --- a/core/extensions.rs +++ b/core/extensions.rs @@ -2,7 +2,6 @@ use crate::OpState; use anyhow::Error; use std::{cell::RefCell, rc::Rc, task::Context}; -use v8::fast_api::FastFunction; pub type SourcePair = (&'static str, &'static str); pub type OpFnRef = v8::FunctionCallback; @@ -10,16 +9,14 @@ pub type OpMiddlewareFn = dyn Fn(OpDecl) -> OpDecl; pub type OpStateFn = dyn Fn(&mut OpState) -> Result<(), Error>; pub type OpEventLoopFn = dyn Fn(Rc>, &mut Context) -> bool; -pub trait FastFunctionSignature {} - +#[derive(Clone, Copy)] pub struct OpDecl { pub name: &'static str, pub v8_fn_ptr: OpFnRef, pub enabled: bool, - pub is_async: bool, + pub is_async: bool, // TODO(@AaronO): enum sync/async/fast ? pub is_unstable: bool, pub is_v8: bool, - pub fast_fn: Option>, } impl OpDecl { @@ -35,7 +32,7 @@ impl OpDecl { #[derive(Default)] pub struct Extension { js_files: Option>, - pub ops: Option>, + ops: Option>, opstate_fn: Option>, middleware_fn: Option>, event_loop_middleware: Option>, -- cgit v1.2.3