/snap/node/11782/include/node/cppgc
NameSizeModeActions
internal/-0755rm
allocation.h118890644editdlrm
common.h6430644editdlrm
cross-thread-persistent.h151700644editdlrm
custom-space.h24540644editdlrm
default-platform.h22300644editdlrm
ephemeron-pair.h8040644editdlrm
explicit-management.h33700644editdlrm
garbage-collected.h31830644editdlrm
heap-consistency.h120210644editdlrm
heap-handle.h12890644editdlrm
heap-state.h26320644editdlrm
heap-statistics.h39820644editdlrm
heap.h58340644editdlrm
liveness-broker.h23960644editdlrm
macros.h13450644editdlrm
member.h241140644editdlrm
name-provider.h20340644editdlrm
object-size-trait.h16430644editdlrm
persistent.h139370644editdlrm
platform.h60420644editdlrm
prefinalizer.h29440644editdlrm
process-heap-statistics.h10090644editdlrm
sentinel-pointer.h12080644editdlrm
source-location.h4140644editdlrm
testing.h30330644editdlrm
trace-trait.h34790644editdlrm
type-traits.h86560644editdlrm
visitor.h185160644editdlrm
Edit: /snap/node/11782/include/node/cppgc/name-provider.h (2034B)
// Copyright 2020 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef INCLUDE_CPPGC_NAME_PROVIDER_H_ #define INCLUDE_CPPGC_NAME_PROVIDER_H_ #include "v8config.h" // NOLINT(build/include_directory) namespace cppgc { /** * NameProvider allows for providing a human-readable name for garbage-collected * objects. * * There's two cases of names to distinguish: * a. Explicitly specified names via using NameProvider. Such names are always * preserved in the system. * b. Internal names that Oilpan infers from a C++ type on the class hierarchy * of the object. This is not necessarily the type of the actually * instantiated object. * * Depending on the build configuration, Oilpan may hide names, i.e., represent * them with kHiddenName, of case b. to avoid exposing internal details. */ class V8_EXPORT NameProvider { public: /** * Name that is used when hiding internals. */ static constexpr const char kHiddenName[] = "InternalNode"; /** * Name that is used in case compiler support is missing for composing a name * from C++ types. */ static constexpr const char kNoNameDeducible[] = ""; /** * Indicating whether the build supports extracting C++ names as object names. * * @returns true if C++ names should be hidden and represented by kHiddenName. */ static constexpr bool SupportsCppClassNamesAsObjectNames() { #if CPPGC_SUPPORTS_OBJECT_NAMES return true; #else // !CPPGC_SUPPORTS_OBJECT_NAMES return false; #endif // !CPPGC_SUPPORTS_OBJECT_NAMES } virtual ~NameProvider() = default; /** * Specifies a name for the garbage-collected object. Such names will never * be hidden, as they are explicitly specified by the user of this API. * * @returns a human readable name for the object. */ virtual const char* GetHumanReadableName() const = 0; }; } // namespace cppgc #endif // INCLUDE_CPPGC_NAME_PROVIDER_H_