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
5
#include "
src/sandbox/trusted-pointer-table.h
"
6
7
#include "
src/execution/isolate.h
"
8
#include "
src/logging/counters.h
"
9
#include "
src/sandbox/trusted-pointer-table-inl.h
"
10
11
#ifdef V8_ENABLE_SANDBOX
12
13
namespace
v8
{
14
namespace
internal
{
15
16
uint32_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
counters.h
isolate.h
v8::internal::internal
internal
Definition
wasm-objects-inl.h:458
v8
Definition
api-arguments-inl.h:19
trusted-pointer-table-inl.h
trusted-pointer-table.h
src
sandbox
trusted-pointer-table.cc
Generated on Sun Apr 6 2025 21:08:57 for v8 by
1.12.0