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

#include <v8-console-message.h>

Collaboration diagram for v8_inspector::V8ConsoleMessage:

Public Member Functions

 ~V8ConsoleMessage ()
 
V8MessageOrigin origin () const
 
void reportToFrontend (protocol::Console::Frontend *) const
 
void reportToFrontend (protocol::Runtime::Frontend *, V8InspectorSessionImpl *, bool generatePreview) const
 
ConsoleAPIType type () const
 
void contextDestroyed (int contextId)
 
int estimatedSize () const
 

Static Public Member Functions

static std::unique_ptr< V8ConsoleMessagecreateForConsoleAPI (v8::Local< v8::Context > v8Context, int contextId, int groupId, V8InspectorImpl *inspector, double timestamp, ConsoleAPIType, v8::MemorySpan< const v8::Local< v8::Value > > arguments, const String16 &consoleContext, std::unique_ptr< V8StackTraceImpl >)
 
static std::unique_ptr< V8ConsoleMessagecreateForException (double timestamp, const String16 &detailedMessage, const String16 &url, unsigned lineNumber, unsigned columnNumber, std::unique_ptr< V8StackTraceImpl >, int scriptId, v8::Isolate *, const String16 &message, int contextId, v8::Local< v8::Value > exception, unsigned exceptionId)
 
static std::unique_ptr< V8ConsoleMessagecreateForRevokedException (double timestamp, const String16 &message, unsigned revokedExceptionId)
 

Private Types

using Arguments = std::vector<std::unique_ptr<v8::Global<v8::Value>>>
 

Private Member Functions

 V8ConsoleMessage (V8MessageOrigin, double timestamp, const String16 &message)
 
std::unique_ptr< protocol::Array< protocol::Runtime::RemoteObject > > wrapArguments (V8InspectorSessionImpl *, bool generatePreview) const
 
std::unique_ptr< protocol::Runtime::RemoteObject > wrapException (V8InspectorSessionImpl *, bool generatePreview) const
 
void setLocation (const String16 &url, unsigned lineNumber, unsigned columnNumber, std::unique_ptr< V8StackTraceImpl >, int scriptId)
 
std::unique_ptr< protocol::DictionaryValue > getAssociatedExceptionData (V8InspectorImpl *inspector, V8InspectorSessionImpl *session) const
 

Private Attributes

V8MessageOrigin m_origin
 
double m_timestamp
 
String16 m_message
 
String16 m_url
 
unsigned m_lineNumber
 
unsigned m_columnNumber
 
std::unique_ptr< V8StackTraceImplm_stackTrace
 
int m_scriptId
 
int m_contextId
 
ConsoleAPIType m_type
 
unsigned m_exceptionId
 
unsigned m_revokedExceptionId
 
int m_v8Size = 0
 
Arguments m_arguments
 
String16 m_detailedMessage
 
String16 m_consoleContext
 

Detailed Description

Definition at line 48 of file v8-console-message.h.

Member Typedef Documentation

◆ Arguments

using v8_inspector::V8ConsoleMessage::Arguments = std::vector<std::unique_ptr<v8::Global<v8::Value>>>
private

Definition at line 82 of file v8-console-message.h.

Constructor & Destructor Documentation

◆ ~V8ConsoleMessage()

v8_inspector::V8ConsoleMessage::~V8ConsoleMessage ( )
default

◆ V8ConsoleMessage()

v8_inspector::V8ConsoleMessage::V8ConsoleMessage ( V8MessageOrigin origin,
double timestamp,
const String16 & message )
private

Definition at line 194 of file v8-console-message.cc.

Here is the caller graph for this function:

Member Function Documentation

◆ contextDestroyed()

void v8_inspector::V8ConsoleMessage::contextDestroyed ( int contextId)

Definition at line 523 of file v8-console-message.cc.

Here is the call graph for this function:

◆ createForConsoleAPI()

std::unique_ptr< V8ConsoleMessage > v8_inspector::V8ConsoleMessage::createForConsoleAPI ( v8::Local< v8::Context > v8Context,
int contextId,
int groupId,
V8InspectorImpl * inspector,
double timestamp,
ConsoleAPIType type,
v8::MemorySpan< const v8::Local< v8::Value > > arguments,
const String16 & consoleContext,
std::unique_ptr< V8StackTraceImpl > stackTrace )
static

Definition at line 428 of file v8-console-message.cc.

Here is the call graph for this function:

◆ createForException()

std::unique_ptr< V8ConsoleMessage > v8_inspector::V8ConsoleMessage::createForException ( double timestamp,
const String16 & detailedMessage,
const String16 & url,
unsigned lineNumber,
unsigned columnNumber,
std::unique_ptr< V8StackTraceImpl > stackTrace,
int scriptId,
v8::Isolate * isolate,
const String16 & message,
int contextId,
v8::Local< v8::Value > exception,
unsigned exceptionId )
static

Definition at line 490 of file v8-console-message.cc.

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

◆ createForRevokedException()

std::unique_ptr< V8ConsoleMessage > v8_inspector::V8ConsoleMessage::createForRevokedException ( double timestamp,
const String16 & message,
unsigned revokedExceptionId )
static

Definition at line 514 of file v8-console-message.cc.

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

◆ estimatedSize()

int v8_inspector::V8ConsoleMessage::estimatedSize ( ) const
inline

Definition at line 75 of file v8-console-message.h.

Here is the call graph for this function:

◆ getAssociatedExceptionData()

std::unique_ptr< protocol::DictionaryValue > v8_inspector::V8ConsoleMessage::getAssociatedExceptionData ( V8InspectorImpl * inspector,
V8InspectorSessionImpl * session ) const
private

Definition at line 392 of file v8-console-message.cc.

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

◆ origin()

V8MessageOrigin v8_inspector::V8ConsoleMessage::origin ( ) const

Definition at line 423 of file v8-console-message.cc.

◆ reportToFrontend() [1/2]

void v8_inspector::V8ConsoleMessage::reportToFrontend ( protocol::Console::Frontend * frontend) const

Definition at line 225 of file v8-console-message.cc.

Here is the call graph for this function:

◆ reportToFrontend() [2/2]

void v8_inspector::V8ConsoleMessage::reportToFrontend ( protocol::Runtime::Frontend * frontend,
V8InspectorSessionImpl * session,
bool generatePreview ) const

Definition at line 311 of file v8-console-message.cc.

Here is the call graph for this function:

◆ setLocation()

void v8_inspector::V8ConsoleMessage::setLocation ( const String16 & url,
unsigned lineNumber,
unsigned columnNumber,
std::unique_ptr< V8StackTraceImpl > stackTrace,
int scriptId )
private

Definition at line 209 of file v8-console-message.cc.

Here is the call graph for this function:

◆ type()

ConsoleAPIType v8_inspector::V8ConsoleMessage::type ( ) const

Definition at line 425 of file v8-console-message.cc.

Here is the caller graph for this function:

◆ wrapArguments()

std::unique_ptr< protocol::Array< protocol::Runtime::RemoteObject > > v8_inspector::V8ConsoleMessage::wrapArguments ( V8InspectorSessionImpl * session,
bool generatePreview ) const
private

Definition at line 252 of file v8-console-message.cc.

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

◆ wrapException()

std::unique_ptr< protocol::Runtime::RemoteObject > v8_inspector::V8ConsoleMessage::wrapException ( V8InspectorSessionImpl * session,
bool generatePreview ) const
private

Definition at line 407 of file v8-console-message.cc.

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

Member Data Documentation

◆ m_arguments

Arguments v8_inspector::V8ConsoleMessage::m_arguments
private

Definition at line 106 of file v8-console-message.h.

◆ m_columnNumber

unsigned v8_inspector::V8ConsoleMessage::m_columnNumber
private

Definition at line 98 of file v8-console-message.h.

◆ m_consoleContext

String16 v8_inspector::V8ConsoleMessage::m_consoleContext
private

Definition at line 108 of file v8-console-message.h.

◆ m_contextId

int v8_inspector::V8ConsoleMessage::m_contextId
private

Definition at line 101 of file v8-console-message.h.

◆ m_detailedMessage

String16 v8_inspector::V8ConsoleMessage::m_detailedMessage
private

Definition at line 107 of file v8-console-message.h.

◆ m_exceptionId

unsigned v8_inspector::V8ConsoleMessage::m_exceptionId
private

Definition at line 103 of file v8-console-message.h.

◆ m_lineNumber

unsigned v8_inspector::V8ConsoleMessage::m_lineNumber
private

Definition at line 97 of file v8-console-message.h.

◆ m_message

String16 v8_inspector::V8ConsoleMessage::m_message
private

Definition at line 95 of file v8-console-message.h.

◆ m_origin

V8MessageOrigin v8_inspector::V8ConsoleMessage::m_origin
private

Definition at line 93 of file v8-console-message.h.

◆ m_revokedExceptionId

unsigned v8_inspector::V8ConsoleMessage::m_revokedExceptionId
private

Definition at line 104 of file v8-console-message.h.

◆ m_scriptId

int v8_inspector::V8ConsoleMessage::m_scriptId
private

Definition at line 100 of file v8-console-message.h.

◆ m_stackTrace

std::unique_ptr<V8StackTraceImpl> v8_inspector::V8ConsoleMessage::m_stackTrace
private

Definition at line 99 of file v8-console-message.h.

◆ m_timestamp

double v8_inspector::V8ConsoleMessage::m_timestamp
private

Definition at line 94 of file v8-console-message.h.

◆ m_type

ConsoleAPIType v8_inspector::V8ConsoleMessage::m_type
private

Definition at line 102 of file v8-console-message.h.

◆ m_url

String16 v8_inspector::V8ConsoleMessage::m_url
private

Definition at line 96 of file v8-console-message.h.

◆ m_v8Size

int v8_inspector::V8ConsoleMessage::m_v8Size = 0
private

Definition at line 105 of file v8-console-message.h.


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