diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-10-28 04:20:17 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-28 16:50:17 +0530 |
commit | e18950284f279cfa8ec090cb8a882dbd64e92d4a (patch) | |
tree | 2ba6be798fe8d2393f7701693c1c545a237a2575 /core/extensions.rs | |
parent | d9e425a9472981e8a1df025c29bbad609123e783 (diff) |
Reland "perf(core): generate inlined wrappers for async ops" (#16455)
Reland https://github.com/denoland/deno/pull/16428
Diffstat (limited to 'core/extensions.rs')
-rw-r--r-- | core/extensions.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/extensions.rs b/core/extensions.rs index 846770d1f..7b9ab5908 100644 --- a/core/extensions.rs +++ b/core/extensions.rs @@ -16,6 +16,9 @@ pub struct OpDecl { pub enabled: bool, pub is_async: bool, pub is_unstable: bool, + /// V8 argument count. Used as an optimization + /// hint by `core.initalizeAsyncOps`. + pub argc: usize, pub is_v8: bool, pub fast_fn: Option<Box<dyn FastFunction>>, } |