V8 API Reference, 7.2.502.16 (for Deno 0.2.4)
v8::internal::EmbedderGraphImpl Class Reference
Inheritance diagram for v8::internal::EmbedderGraphImpl:
v8::EmbedderGraph

Classes

struct  Edge
 
class  V8NodeImpl
 

Public Member Functions

NodeV8Node (const v8::Local< v8::Value > &value) final
 
NodeAddNode (std::unique_ptr< Node > node) final
 
void AddEdge (Node *from, Node *to, const char *name) final
 
const std::vector< std::unique_ptr< Node > > & nodes ()
 
const std::vector< Edge > & edges ()
 

Detailed Description

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

Member Function Documentation

◆ AddEdge()

void v8::internal::EmbedderGraphImpl::AddEdge ( Node from,
Node to,
const char name 
)
inlinefinalvirtual

Adds an edge that represents a strong reference from the given node |from| to the given node |to|. The nodes must be added to the graph before calling this function.

If name is nullptr, the edge will have auto-increment indexes, otherwise it will be named accordingly.

Implements v8::EmbedderGraph.

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

◆ AddNode()

Node* v8::internal::EmbedderGraphImpl::AddNode ( std::unique_ptr< Node node)
inlinefinalvirtual

Adds the given node to the graph and takes ownership of the node. Returns a raw pointer to the node that is valid while the graph is alive.

Implements v8::EmbedderGraph.

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

◆ V8Node()

Node* v8::internal::EmbedderGraphImpl::V8Node ( const v8::Local< v8::Value > &  value)
inlinefinalvirtual

Returns a node corresponding to the given V8 value. Ownership is not transferred. The result pointer is valid while the graph is alive.

Implements v8::EmbedderGraph.

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


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