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

#include <v8-stack-trace-impl.h>

Inheritance diagram for v8_inspector::V8StackTraceImpl:
Collaboration diagram for v8_inspector::V8StackTraceImpl:

Classes

class  StackFrameIterator
 

Public Member Functions

 ~V8StackTraceImpl () override
 
 V8StackTraceImpl (const V8StackTraceImpl &)=delete
 
V8StackTraceImploperator= (const V8StackTraceImpl &)=delete
 
std::unique_ptr< protocol::Runtime::StackTrace > buildInspectorObjectImpl (V8Debugger *debugger) const
 
std::unique_ptr< protocol::Runtime::StackTrace > buildInspectorObjectImpl (V8Debugger *debugger, int maxAsyncDepth) const
 
std::unique_ptr< V8StackTraceclone () override
 
StringView firstNonEmptySourceURL () const override
 
bool isEmpty () const override
 
StringView topSourceURL () const override
 
int topLineNumber () const override
 
int topColumnNumber () const override
 
int topScriptId () const override
 
StringView topFunctionName () const override
 
std::unique_ptr< protocol::Runtime::API::StackTrace > buildInspectorObject (int maxAsyncDepth) const override
 
std::unique_ptr< StringBuffertoString () const override
 
bool isEqualIgnoringTopFrame (V8StackTraceImpl *stackTrace) const
 
std::vector< V8StackFrameframes () const override
 
- Public Member Functions inherited from v8_inspector::V8StackTrace
virtual ~V8StackTrace ()=default
 

Static Public Member Functions

static std::unique_ptr< V8StackTraceImplcreate (V8Debugger *, v8::Local< v8::StackTrace >, int maxStackSize)
 
static std::unique_ptr< V8StackTraceImplcapture (V8Debugger *, int maxStackSize)
 

Static Public Attributes

static constexpr int kDefaultMaxCallStackSizeToCapture = 200
 

Private Member Functions

 V8StackTraceImpl (std::vector< std::shared_ptr< StackFrame > > frames, int maxAsyncDepth, std::shared_ptr< AsyncStackTrace > asyncParent, const V8StackTraceId &externalParent)
 

Private Attributes

std::vector< std::shared_ptr< StackFrame > > m_frames
 
int m_maxAsyncDepth
 
std::weak_ptr< AsyncStackTracem_asyncParent
 
V8StackTraceId m_externalParent
 

Detailed Description

Definition at line 52 of file v8-stack-trace-impl.h.

Constructor & Destructor Documentation

◆ ~V8StackTraceImpl()

v8_inspector::V8StackTraceImpl::~V8StackTraceImpl ( )
overridedefault

◆ V8StackTraceImpl() [1/2]

v8_inspector::V8StackTraceImpl::V8StackTraceImpl ( const V8StackTraceImpl & )
delete
Here is the caller graph for this function:

◆ V8StackTraceImpl() [2/2]

v8_inspector::V8StackTraceImpl::V8StackTraceImpl ( std::vector< std::shared_ptr< StackFrame > > frames,
int maxAsyncDepth,
std::shared_ptr< AsyncStackTrace > asyncParent,
const V8StackTraceId & externalParent )
private

Definition at line 257 of file v8-stack-trace-impl.cc.

Member Function Documentation

◆ buildInspectorObject()

std::unique_ptr< protocol::Runtime::API::StackTrace > v8_inspector::V8StackTraceImpl::buildInspectorObject ( int maxAsyncDepth) const
overridevirtual

Implements v8_inspector::V8StackTrace.

Definition at line 334 of file v8-stack-trace-impl.cc.

Here is the call graph for this function:

◆ buildInspectorObjectImpl() [1/2]

std::unique_ptr< protocol::Runtime::StackTrace > v8_inspector::V8StackTraceImpl::buildInspectorObjectImpl ( V8Debugger * debugger) const

Definition at line 321 of file v8-stack-trace-impl.cc.

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

◆ buildInspectorObjectImpl() [2/2]

std::unique_ptr< protocol::Runtime::StackTrace > v8_inspector::V8StackTraceImpl::buildInspectorObjectImpl ( V8Debugger * debugger,
int maxAsyncDepth ) const

Definition at line 326 of file v8-stack-trace-impl.cc.

◆ capture()

std::unique_ptr< V8StackTraceImpl > v8_inspector::V8StackTraceImpl::capture ( V8Debugger * debugger,
int maxStackSize )
static

Definition at line 238 of file v8-stack-trace-impl.cc.

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

◆ clone()

std::unique_ptr< V8StackTrace > v8_inspector::V8StackTraceImpl::clone ( )
overridevirtual

Implements v8_inspector::V8StackTrace.

Definition at line 268 of file v8-stack-trace-impl.cc.

Here is the call graph for this function:

◆ create()

std::unique_ptr< V8StackTraceImpl > v8_inspector::V8StackTraceImpl::create ( V8Debugger * debugger,
v8::Local< v8::StackTrace > v8StackTrace,
int maxStackSize )
static

Definition at line 212 of file v8-stack-trace-impl.cc.

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

◆ firstNonEmptySourceURL()

StringView v8_inspector::V8StackTraceImpl::firstNonEmptySourceURL ( ) const
overridevirtual

Implements v8_inspector::V8StackTrace.

Definition at line 273 of file v8-stack-trace-impl.cc.

Here is the call graph for this function:

◆ frames()

std::vector< V8StackFrame > v8_inspector::V8StackTraceImpl::frames ( ) const
overridevirtual

Implements v8_inspector::V8StackTrace.

Definition at line 304 of file v8-stack-trace-impl.cc.

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

◆ isEmpty()

bool v8_inspector::V8StackTraceImpl::isEmpty ( ) const
overridevirtual

Implements v8_inspector::V8StackTrace.

Definition at line 284 of file v8-stack-trace-impl.cc.

◆ isEqualIgnoringTopFrame()

bool v8_inspector::V8StackTraceImpl::isEqualIgnoringTopFrame ( V8StackTraceImpl * stackTrace) const

Definition at line 357 of file v8-stack-trace-impl.cc.

◆ operator=()

V8StackTraceImpl & v8_inspector::V8StackTraceImpl::operator= ( const V8StackTraceImpl & )
delete

◆ topColumnNumber()

int v8_inspector::V8StackTraceImpl::topColumnNumber ( ) const
overridevirtual

Implements v8_inspector::V8StackTrace.

Definition at line 294 of file v8-stack-trace-impl.cc.

◆ topFunctionName()

StringView v8_inspector::V8StackTraceImpl::topFunctionName ( ) const
overridevirtual

Implements v8_inspector::V8StackTrace.

Definition at line 300 of file v8-stack-trace-impl.cc.

Here is the call graph for this function:

◆ topLineNumber()

int v8_inspector::V8StackTraceImpl::topLineNumber ( ) const
overridevirtual

Implements v8_inspector::V8StackTrace.

Definition at line 290 of file v8-stack-trace-impl.cc.

◆ topScriptId()

int v8_inspector::V8StackTraceImpl::topScriptId ( ) const
overridevirtual

Implements v8_inspector::V8StackTrace.

Definition at line 298 of file v8-stack-trace-impl.cc.

◆ topSourceURL()

StringView v8_inspector::V8StackTraceImpl::topSourceURL ( ) const
overridevirtual

Implements v8_inspector::V8StackTrace.

Definition at line 286 of file v8-stack-trace-impl.cc.

Here is the call graph for this function:

◆ toString()

std::unique_ptr< StringBuffer > v8_inspector::V8StackTraceImpl::toString ( ) const
overridevirtual

Implements v8_inspector::V8StackTrace.

Definition at line 339 of file v8-stack-trace-impl.cc.

Here is the call graph for this function:

Member Data Documentation

◆ kDefaultMaxCallStackSizeToCapture

int v8_inspector::V8StackTraceImpl::kDefaultMaxCallStackSizeToCapture = 200
staticconstexpr

Definition at line 54 of file v8-stack-trace-impl.h.

◆ m_asyncParent

std::weak_ptr<AsyncStackTrace> v8_inspector::V8StackTraceImpl::m_asyncParent
private

Definition at line 111 of file v8-stack-trace-impl.h.

◆ m_externalParent

V8StackTraceId v8_inspector::V8StackTraceImpl::m_externalParent
private

Definition at line 112 of file v8-stack-trace-impl.h.

◆ m_frames

std::vector<std::shared_ptr<StackFrame> > v8_inspector::V8StackTraceImpl::m_frames
private

Definition at line 109 of file v8-stack-trace-impl.h.

◆ m_maxAsyncDepth

int v8_inspector::V8StackTraceImpl::m_maxAsyncDepth
private

Definition at line 110 of file v8-stack-trace-impl.h.


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