v8
V8 is Google’s open source high-performance JavaScript and WebAssembly engine, written in C++.
Loading...
Searching...
No Matches
v8::internal::GlobalObjectsEnumerator Class Reference
Inheritance diagram for v8::internal::GlobalObjectsEnumerator:
Collaboration diagram for v8::internal::GlobalObjectsEnumerator:

Public Member Functions

 GlobalObjectsEnumerator (Isolate *isolate, std::function< void(Handle< JSGlobalObject >)> handler)
 
void VisitRootPointers (Root root, const char *description, FullObjectSlot start, FullObjectSlot end) override
 
void VisitRootPointers (Root root, const char *description, OffHeapObjectSlot start, OffHeapObjectSlot end) override
 
- Public Member Functions inherited from v8::internal::RootVisitor
virtual ~RootVisitor ()=default
 
virtual void VisitRootPointer (Root root, const char *description, FullObjectSlot p)
 
virtual void VisitRunningCode (FullObjectSlot code_slot, FullObjectSlot istream_or_smi_zero_slot)
 
virtual void Synchronize (VisitorSynchronization::SyncTag tag)
 
virtual GarbageCollector collector () const
 

Private Member Functions

template<typename TSlot >
void VisitRootPointersImpl (Root root, const char *description, TSlot start, TSlot end)
 

Private Attributes

Isolateisolate_
 
std::function< void(Handle< JSGlobalObject >)> handler_
 

Additional Inherited Members

- Static Public Member Functions inherited from v8::internal::RootVisitor
static const char * RootName (Root root)
 

Detailed Description

Definition at line 2896 of file heap-snapshot-generator.cc.

Constructor & Destructor Documentation

◆ GlobalObjectsEnumerator()

v8::internal::GlobalObjectsEnumerator::GlobalObjectsEnumerator ( Isolate * isolate,
std::function< void(Handle< JSGlobalObject >)> handler )
inline

Definition at line 2898 of file heap-snapshot-generator.cc.

Member Function Documentation

◆ VisitRootPointers() [1/2]

void v8::internal::GlobalObjectsEnumerator::VisitRootPointers ( Root root,
const char * description,
FullObjectSlot start,
FullObjectSlot end )
inlineoverridevirtual

Implements v8::internal::RootVisitor.

Definition at line 2902 of file heap-snapshot-generator.cc.

Here is the call graph for this function:

◆ VisitRootPointers() [2/2]

void v8::internal::GlobalObjectsEnumerator::VisitRootPointers ( Root root,
const char * description,
OffHeapObjectSlot start,
OffHeapObjectSlot end )
inlineoverridevirtual

Reimplemented from v8::internal::RootVisitor.

Definition at line 2907 of file heap-snapshot-generator.cc.

Here is the call graph for this function:

◆ VisitRootPointersImpl()

template<typename TSlot >
void v8::internal::GlobalObjectsEnumerator::VisitRootPointersImpl ( Root root,
const char * description,
TSlot start,
TSlot end )
inlineprivate

Definition at line 2915 of file heap-snapshot-generator.cc.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ handler_

std::function<void(Handle<JSGlobalObject>)> v8::internal::GlobalObjectsEnumerator::handler_
private

Definition at line 2930 of file heap-snapshot-generator.cc.

◆ isolate_

Isolate* v8::internal::GlobalObjectsEnumerator::isolate_
private

Definition at line 2929 of file heap-snapshot-generator.cc.


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