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

#include <heap-snapshot-generator.h>

Collaboration diagram for v8::internal::HeapGraphEdge:

Public Types

enum  Type {
  kContextVariable = v8::HeapGraphEdge::kContextVariable , kElement = v8::HeapGraphEdge::kElement , kProperty = v8::HeapGraphEdge::kProperty , kInternal = v8::HeapGraphEdge::kInternal ,
  kHidden = v8::HeapGraphEdge::kHidden , kShortcut = v8::HeapGraphEdge::kShortcut , kWeak = v8::HeapGraphEdge::kWeak
}
 

Public Member Functions

 HeapGraphEdge (Type type, const char *name, HeapEntry *from, HeapEntry *to)
 
 HeapGraphEdge (Type type, int index, HeapEntry *from, HeapEntry *to)
 
Type type () const
 
int index () const
 
const char * name () const
 
V8_INLINE HeapEntryfrom () const
 
HeapEntryto () const
 
V8_INLINE Isolateisolate () const
 

Private Types

using TypeField = base::BitField<Type, 0, 3>
 
using FromIndexField = base::BitField<int, 3, 29>
 

Private Member Functions

V8_INLINE HeapSnapshotsnapshot () const
 
int from_index () const
 

Private Attributes

uint32_t bit_field_
 
HeapEntryto_entry_
 
union { 
 
   int   index_ 
 
   const char *   name_ 
 
};  
 

Detailed Description

Definition at line 59 of file heap-snapshot-generator.h.

Member Typedef Documentation

◆ FromIndexField

Definition at line 94 of file heap-snapshot-generator.h.

◆ TypeField

Definition at line 93 of file heap-snapshot-generator.h.

Member Enumeration Documentation

◆ Type

Enumerator
kContextVariable 
kElement 
kProperty 
kInternal 
kHidden 
kShortcut 
kWeak 

Definition at line 61 of file heap-snapshot-generator.h.

Constructor & Destructor Documentation

◆ HeapGraphEdge() [1/2]

v8::internal::HeapGraphEdge::HeapGraphEdge ( Type type,
const char * name,
HeapEntry * from,
HeapEntry * to )

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

◆ HeapGraphEdge() [2/2]

v8::internal::HeapGraphEdge::HeapGraphEdge ( Type type,
int index,
HeapEntry * from,
HeapEntry * to )

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

Member Function Documentation

◆ from()

HeapEntry * v8::internal::HeapGraphEdge::from ( ) const

Definition at line 17 of file heap-snapshot-generator-inl.h.

Here is the call graph for this function:

◆ from_index()

int v8::internal::HeapGraphEdge::from_index ( ) const
inlineprivate

Definition at line 91 of file heap-snapshot-generator.h.

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

◆ index()

int v8::internal::HeapGraphEdge::index ( ) const
inline

Definition at line 75 of file heap-snapshot-generator.h.

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

◆ isolate()

Isolate * v8::internal::HeapGraphEdge::isolate ( ) const

Definition at line 21 of file heap-snapshot-generator-inl.h.

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

◆ name()

const char * v8::internal::HeapGraphEdge::name ( ) const
inline

Definition at line 79 of file heap-snapshot-generator.h.

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

◆ snapshot()

HeapSnapshot * v8::internal::HeapGraphEdge::snapshot ( ) const
private

Definition at line 23 of file heap-snapshot-generator-inl.h.

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

◆ to()

HeapEntry * v8::internal::HeapGraphEdge::to ( ) const
inline

Definition at line 85 of file heap-snapshot-generator.h.

Here is the caller graph for this function:

◆ type()

Type v8::internal::HeapGraphEdge::type ( ) const
inline

Definition at line 74 of file heap-snapshot-generator.h.

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

Member Data Documentation

◆ [union]

◆ bit_field_

uint32_t v8::internal::HeapGraphEdge::bit_field_
private

Definition at line 95 of file heap-snapshot-generator.h.

◆ index_

int v8::internal::HeapGraphEdge::index_

Definition at line 98 of file heap-snapshot-generator.h.

◆ name_

const char* v8::internal::HeapGraphEdge::name_

Definition at line 99 of file heap-snapshot-generator.h.

◆ to_entry_

HeapEntry* v8::internal::HeapGraphEdge::to_entry_
private

Definition at line 96 of file heap-snapshot-generator.h.


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