diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-10-25 13:43:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-25 13:43:38 +0200 |
commit | 093b3eee58181ec45839d0fe10b8157326a102b2 (patch) | |
tree | 33f1cb35bfef7a85335d46ca7cb055459c20d637 /ext/node/ops/v8.rs | |
parent | 6c60859407a39e579a9f7101b254c874af85ca68 (diff) |
chore: update deno_core and port all remaining ops to `op2` (#20954)
Signed-off-by: Matt Mastracci <matthew@mastracci.com>
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
Diffstat (limited to 'ext/node/ops/v8.rs')
-rw-r--r-- | ext/node/ops/v8.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ext/node/ops/v8.rs b/ext/node/ops/v8.rs index fdfc559d7..dbb84e932 100644 --- a/ext/node/ops/v8.rs +++ b/ext/node/ops/v8.rs @@ -1,5 +1,4 @@ // Copyright 2018-2023 the Deno authors. All rights reserved. MIT license. -use deno_core::op; use deno_core::op2; use deno_core::v8; @@ -8,8 +7,11 @@ pub fn op_v8_cached_data_version_tag() -> u32 { v8::script_compiler::cached_data_version_tag() } -#[op(v8)] -fn op_v8_get_heap_statistics(scope: &mut v8::HandleScope, buffer: &mut [f64]) { +#[op2] +pub fn op_v8_get_heap_statistics( + scope: &mut v8::HandleScope, + #[buffer] buffer: &mut [f64], +) { let mut stats = v8::HeapStatistics::default(); scope.get_heap_statistics(&mut stats); |