Loading...
Searching...
No Matches
Public Member Functions | List of all members
v8::Object::Wrappable Class Reference

#include <v8-object.h>

Inheritance diagram for v8::Object::Wrappable:
[legend]
Collaboration diagram for v8::Object::Wrappable:
[legend]

Public Member Functions

virtual const WrapperTypeInfoGetWrapperTypeInfo () const
 
const char * GetHumanReadableName () const override
 
virtual void Trace (cppgc::Visitor *visitor) const
 
- Public Member Functions inherited from cppgc::GarbageCollected< Wrappable >
void * operator new (size_t)=delete
 
void * operator new[] (size_t)=delete
 
void operator delete (void *)
 
void operator delete[] (void *)=delete
 
- Public Member Functions inherited from cppgc::NameProvider
virtual ~NameProvider ()=default
 
virtual const char * GetHumanReadableName () const =0
 

Additional Inherited Members

- Public Types inherited from cppgc::GarbageCollected< Wrappable >
using IsGarbageCollectedTypeMarker = void
 
using ParentMostGarbageCollectedType = Wrappable
 
- Static Public Member Functions inherited from cppgc::NameProvider
static constexpr bool SupportsCppClassNamesAsObjectNames ()
 
- Static Public Attributes inherited from cppgc::NameProvider
static constexpr const char kHiddenName [] = "InternalNode"
 
static constexpr const char kNoNameDeducible [] = "<No name>"
 
- Protected Member Functions inherited from cppgc::GarbageCollected< Wrappable >
 GarbageCollected ()=default
 

Member Function Documentation

◆ GetHumanReadableName()

const char * v8::Object::Wrappable::GetHumanReadableName ( ) const
inlineoverridevirtual

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.

Implementations of this function must not allocate garbage-collected objects or otherwise modify the cppgc heap.

V8 may call this function while generating a heap snapshot or at other times. If V8 is currently generating a heap snapshot (according to HeapProfiler::IsTakingSnapshot), then the returned string must stay alive until the snapshot generation has completed. Otherwise, the returned string must stay alive forever. If you need a place to store a temporary string during snapshot generation, use HeapProfiler::CopyNameForHeapSnapshot.

Returns
a human readable name for the object.

Implements cppgc::NameProvider.

◆ GetWrapperTypeInfo()

virtual const WrapperTypeInfo * v8::Object::Wrappable::GetWrapperTypeInfo ( ) const
inlinevirtual

◆ Trace()

virtual void v8::Object::Wrappable::Trace ( cppgc::Visitor visitor) const
inlinevirtual

The documentation for this class was generated from the following file: