v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
trusted-pointer-table.cc
Go to the documentation of this file.
1// Copyright 2023 the V8 project authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
6
10
11#ifdef V8_ENABLE_SANDBOX
12
13namespace v8 {
14namespace internal {
15
16uint32_t TrustedPointerTable::Sweep(Space* space, Counters* counters) {
17 uint32_t num_live_entries = GenericSweep(space);
18 counters->trusted_pointers_count()->AddSample(num_live_entries);
19 return num_live_entries;
20}
21
22} // namespace internal
23} // namespace v8
24
25#endif // V8_ENABLE_SANDBOX