v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
name-provider.h
Go to the documentation of this file.
1
// Copyright 2020 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
#ifndef INCLUDE_CPPGC_NAME_PROVIDER_H_
6
#define INCLUDE_CPPGC_NAME_PROVIDER_H_
7
8
#include "
v8config.h
"
// NOLINT(build/include_directory)
9
10
namespace
cppgc
{
11
26
class
V8_EXPORT
NameProvider
{
27
public
:
31
static
constexpr
const
char
kHiddenName[] =
"InternalNode"
;
32
37
static
constexpr
const
char
kNoNameDeducible[] =
"<No name>"
;
38
44
static
constexpr
bool
SupportsCppClassNamesAsObjectNames
() {
45
#if CPPGC_SUPPORTS_OBJECT_NAMES
46
return
true
;
47
#else
// !CPPGC_SUPPORTS_OBJECT_NAMES
48
return
false
;
49
#endif
// !CPPGC_SUPPORTS_OBJECT_NAMES
50
}
51
52
virtual
~NameProvider
() =
default
;
53
70
virtual
const
char
*
GetHumanReadableName
()
const
= 0;
71
};
72
73
}
// namespace cppgc
74
75
#endif
// INCLUDE_CPPGC_NAME_PROVIDER_H_
cppgc::NameProvider
Definition
name-provider.h:26
cppgc::NameProvider::SupportsCppClassNamesAsObjectNames
static constexpr bool SupportsCppClassNamesAsObjectNames()
Definition
name-provider.h:44
cppgc::NameProvider::~NameProvider
virtual ~NameProvider()=default
cppgc::NameProvider::GetHumanReadableName
virtual const char * GetHumanReadableName() const =0
cppgc
Definition
cross-heap-remembered-set.h:14
v8config.h
V8_EXPORT
#define V8_EXPORT
Definition
v8config.h:800
include
cppgc
name-provider.h
Generated on Sun Apr 6 2025 21:08:50 for v8 by
1.12.0