v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
code-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
11
12#ifdef V8_COMPRESS_POINTERS
13
14namespace v8 {
15namespace internal {
16
17uint32_t CodePointerTable::Sweep(Space* space, Counters* counters) {
18 uint32_t num_live_entries = GenericSweep(space);
19 counters->code_pointers_count()->AddSample(num_live_entries);
20 return num_live_entries;
21}
22
23} // namespace internal
24} // namespace v8
25
26#endif // V8_COMPRESS_POINTERS