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

#include <v8-console.h>

Inheritance diagram for v8_inspector::V8Console:
Collaboration diagram for v8_inspector::V8Console:

Classes

class  CommandLineAPIScope
 

Public Member Functions

v8::Local< v8::ObjectcreateCommandLineAPI (v8::Local< v8::Context > context, int sessionId)
 
void installMemoryGetter (v8::Local< v8::Context > context, v8::Local< v8::Object > console)
 
void installAsyncStackTaggingAPI (v8::Local< v8::Context > context, v8::Local< v8::Object > console)
 
void cancelConsoleTask (TaskInfo *taskInfo)
 
std::map< void *, std::unique_ptr< TaskInfo > > & AllConsoleTasksForTest ()
 
 V8Console (V8InspectorImpl *inspector)
 
- Public Member Functions inherited from v8::debug::ConsoleDelegate
virtual ~ConsoleDelegate ()=default
 

Private Types

using CommandLineAPIData = std::pair<V8Console*, int>
 

Private Member Functions

void Debug (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Error (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Info (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Log (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Warn (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Dir (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void DirXml (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Table (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Trace (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Group (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void GroupCollapsed (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void GroupEnd (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Clear (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Count (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void CountReset (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Assert (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Profile (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void ProfileEnd (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void Time (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void TimeLog (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void TimeEnd (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void TimeStamp (const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
 
void memoryGetterCallback (const v8::FunctionCallbackInfo< v8::Value > &)
 
void memorySetterCallback (const v8::FunctionCallbackInfo< v8::Value > &)
 
void createTask (const v8::FunctionCallbackInfo< v8::Value > &)
 
void runTask (const v8::FunctionCallbackInfo< v8::Value > &)
 
void keysCallback (const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
 
void valuesCallback (const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
 
void debugFunctionCallback (const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
 
void undebugFunctionCallback (const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
 
void monitorFunctionCallback (const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
 
void unmonitorFunctionCallback (const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
 
void lastEvaluationResultCallback (const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
 
void inspectCallback (const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
 
void copyCallback (const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
 
void inspectedObject (const v8::FunctionCallbackInfo< v8::Value > &, int sessionId, unsigned num)
 
void inspectedObject0 (const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
 
void inspectedObject1 (const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
 
void inspectedObject2 (const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
 
void inspectedObject3 (const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
 
void inspectedObject4 (const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
 
void queryObjectsCallback (const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
 
v8::Local< v8::PrivatetaskInfoKey ()
 
v8::Local< v8::ObjectTemplatetaskTemplate ()
 

Static Private Member Functions

template<void(V8Console::*)(const v8::FunctionCallbackInfo< v8::Value > &) func>
static void call (const v8::FunctionCallbackInfo< v8::Value > &info)
 
template<void(V8Console::*)(const v8::FunctionCallbackInfo< v8::Value > &, int) func>
static void call (const v8::FunctionCallbackInfo< v8::Value > &info)
 
template<void(V8Console::*)(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &) func>
static void call (const v8::FunctionCallbackInfo< v8::Value > &info)
 

Private Attributes

V8InspectorImplm_inspector
 
std::map< void *, std::unique_ptr< TaskInfo > > m_tasks
 
v8::Global< v8::Privatem_taskInfoKey
 
v8::Global< v8::ObjectTemplatem_taskTemplate
 

Friends

class TaskInfo
 

Detailed Description

Definition at line 29 of file v8-console.h.

Member Typedef Documentation

◆ CommandLineAPIData

using v8_inspector::V8Console::CommandLineAPIData = std::pair<V8Console*, int>
private

Definition at line 135 of file v8-console.h.

Constructor & Destructor Documentation

◆ V8Console()

v8_inspector::V8Console::V8Console ( V8InspectorImpl * inspector)
explicit

Definition at line 222 of file v8-console.cc.

Member Function Documentation

◆ AllConsoleTasksForTest()

std::map< void *, std::unique_ptr< TaskInfo > > & v8_inspector::V8Console::AllConsoleTasksForTest ( )
inline

Definition at line 39 of file v8-console.h.

◆ Assert()

void v8_inspector::V8Console::Assert ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 358 of file v8-console.cc.

Here is the call graph for this function:

◆ call() [1/3]

template<void(V8Console::*)(const v8::FunctionCallbackInfo< v8::Value > &) func>
static void v8_inspector::V8Console::call ( const v8::FunctionCallbackInfo< v8::Value > & info)
inlinestaticprivate

Definition at line 130 of file v8-console.h.

Here is the caller graph for this function:

◆ call() [2/3]

template<void(V8Console::*)(const v8::FunctionCallbackInfo< v8::Value > &, int) func>
static void v8_inspector::V8Console::call ( const v8::FunctionCallbackInfo< v8::Value > & info)
inlinestaticprivate

Definition at line 138 of file v8-console.h.

◆ call() [3/3]

template<void(V8Console::*)(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &) func>
static void v8_inspector::V8Console::call ( const v8::FunctionCallbackInfo< v8::Value > & info)
inlinestaticprivate

Definition at line 145 of file v8-console.h.

◆ cancelConsoleTask()

void v8_inspector::V8Console::cancelConsoleTask ( TaskInfo * taskInfo)

Definition at line 593 of file v8-console.cc.

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

◆ Clear()

void v8_inspector::V8Console::Clear ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 315 of file v8-console.cc.

Here is the call graph for this function:

◆ copyCallback()

void v8_inspector::V8Console::copyCallback ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
private

Definition at line 776 of file v8-console.cc.

Here is the call graph for this function:

◆ Count()

void v8_inspector::V8Console::Count ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 325 of file v8-console.cc.

Here is the call graph for this function:

◆ CountReset()

void v8_inspector::V8Console::CountReset ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 341 of file v8-console.cc.

Here is the call graph for this function:

◆ createCommandLineAPI()

v8::Local< v8::Object > v8_inspector::V8Console::createCommandLineAPI ( v8::Local< v8::Context > context,
int sessionId )

Definition at line 849 of file v8-console.cc.

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

◆ createTask()

void v8_inspector::V8Console::createTask ( const v8::FunctionCallbackInfo< v8::Value > & info)
private

Definition at line 494 of file v8-console.cc.

Here is the call graph for this function:

◆ Debug()

void v8_inspector::V8Console::Debug ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 224 of file v8-console.cc.

◆ debugFunctionCallback()

void v8_inspector::V8Console::debugFunctionCallback ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
private

Definition at line 670 of file v8-console.cc.

Here is the call graph for this function:

◆ Dir()

void v8_inspector::V8Console::Dir ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 259 of file v8-console.cc.

◆ DirXml()

void v8_inspector::V8Console::DirXml ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 266 of file v8-console.cc.

◆ Error()

void v8_inspector::V8Console::Error ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 231 of file v8-console.cc.

◆ Group()

void v8_inspector::V8Console::Group ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 288 of file v8-console.cc.

◆ GroupCollapsed()

void v8_inspector::V8Console::GroupCollapsed ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 296 of file v8-console.cc.

◆ GroupEnd()

void v8_inspector::V8Console::GroupEnd ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 306 of file v8-console.cc.

◆ Info()

void v8_inspector::V8Console::Info ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 238 of file v8-console.cc.

◆ inspectCallback()

void v8_inspector::V8Console::inspectCallback ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
private

Definition at line 770 of file v8-console.cc.

Here is the call graph for this function:

◆ inspectedObject()

void v8_inspector::V8Console::inspectedObject ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId,
unsigned num )
private

Definition at line 805 of file v8-console.cc.

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

◆ inspectedObject0()

void v8_inspector::V8Console::inspectedObject0 ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
inlineprivate

Definition at line 179 of file v8-console.h.

Here is the call graph for this function:

◆ inspectedObject1()

void v8_inspector::V8Console::inspectedObject1 ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
inlineprivate

Definition at line 183 of file v8-console.h.

Here is the call graph for this function:

◆ inspectedObject2()

void v8_inspector::V8Console::inspectedObject2 ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
inlineprivate

Definition at line 187 of file v8-console.h.

Here is the call graph for this function:

◆ inspectedObject3()

void v8_inspector::V8Console::inspectedObject3 ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
inlineprivate

Definition at line 191 of file v8-console.h.

Here is the call graph for this function:

◆ inspectedObject4()

void v8_inspector::V8Console::inspectedObject4 ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
inlineprivate

Definition at line 195 of file v8-console.h.

Here is the call graph for this function:

◆ installAsyncStackTaggingAPI()

void v8_inspector::V8Console::installAsyncStackTaggingAPI ( v8::Local< v8::Context > context,
v8::Local< v8::Object > console )

Definition at line 837 of file v8-console.cc.

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

◆ installMemoryGetter()

void v8_inspector::V8Console::installMemoryGetter ( v8::Local< v8::Context > context,
v8::Local< v8::Object > console )

Definition at line 820 of file v8-console.cc.

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

◆ keysCallback()

void v8_inspector::V8Console::keysCallback ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
private

Definition at line 617 of file v8-console.cc.

Here is the call graph for this function:

◆ lastEvaluationResultCallback()

void v8_inspector::V8Console::lastEvaluationResultCallback ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
private

Definition at line 734 of file v8-console.cc.

Here is the call graph for this function:

◆ Log()

void v8_inspector::V8Console::Log ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 245 of file v8-console.cc.

◆ memoryGetterCallback()

void v8_inspector::V8Console::memoryGetterCallback ( const v8::FunctionCallbackInfo< v8::Value > & info)
private

Definition at line 476 of file v8-console.cc.

Here is the call graph for this function:

◆ memorySetterCallback()

void v8_inspector::V8Console::memorySetterCallback ( const v8::FunctionCallbackInfo< v8::Value > & info)
private

Definition at line 487 of file v8-console.cc.

◆ monitorFunctionCallback()

void v8_inspector::V8Console::monitorFunctionCallback ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
private

Definition at line 696 of file v8-console.cc.

Here is the call graph for this function:

◆ Profile()

void v8_inspector::V8Console::Profile ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 374 of file v8-console.cc.

Here is the call graph for this function:

◆ ProfileEnd()

void v8_inspector::V8Console::ProfileEnd ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 389 of file v8-console.cc.

Here is the call graph for this function:

◆ queryObjectsCallback()

void v8_inspector::V8Console::queryObjectsCallback ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
private

Definition at line 782 of file v8-console.cc.

Here is the call graph for this function:

◆ runTask()

void v8_inspector::V8Console::runTask ( const v8::FunctionCallbackInfo< v8::Value > & info)
private

Definition at line 522 of file v8-console.cc.

Here is the call graph for this function:

◆ Table()

void v8_inspector::V8Console::Table ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 273 of file v8-console.cc.

◆ taskInfoKey()

v8::Local< v8::Private > v8_inspector::V8Console::taskInfoKey ( )
private

Definition at line 569 of file v8-console.cc.

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

◆ taskTemplate()

v8::Local< v8::ObjectTemplate > v8_inspector::V8Console::taskTemplate ( )
private

Definition at line 577 of file v8-console.cc.

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

◆ Time()

void v8_inspector::V8Console::Time ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 404 of file v8-console.cc.

Here is the call graph for this function:

◆ TimeEnd()

void v8_inspector::V8Console::TimeEnd ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 439 of file v8-console.cc.

Here is the call graph for this function:

◆ TimeLog()

void v8_inspector::V8Console::TimeLog ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 420 of file v8-console.cc.

Here is the call graph for this function:

◆ TimeStamp()

void v8_inspector::V8Console::TimeStamp ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 459 of file v8-console.cc.

Here is the call graph for this function:

◆ Trace()

void v8_inspector::V8Console::Trace ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

Definition at line 280 of file v8-console.cc.

◆ undebugFunctionCallback()

void v8_inspector::V8Console::undebugFunctionCallback ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
private

Definition at line 685 of file v8-console.cc.

Here is the call graph for this function:

◆ unmonitorFunctionCallback()

void v8_inspector::V8Console::unmonitorFunctionCallback ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
private

Definition at line 723 of file v8-console.cc.

Here is the call graph for this function:

◆ valuesCallback()

void v8_inspector::V8Console::valuesCallback ( const v8::FunctionCallbackInfo< v8::Value > & info,
int sessionId )
private

Definition at line 632 of file v8-console.cc.

Here is the call graph for this function:

◆ Warn()

void v8_inspector::V8Console::Warn ( const v8::debug::ConsoleCallArguments & info,
const v8::debug::ConsoleContext & consoleContext )
overrideprivatevirtual

Reimplemented from v8::debug::ConsoleDelegate.

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

Friends And Related Symbol Documentation

◆ TaskInfo

friend class TaskInfo
friend

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

Member Data Documentation

◆ m_inspector

V8InspectorImpl* v8_inspector::V8Console::m_inspector
private

Definition at line 212 of file v8-console.h.

◆ m_taskInfoKey

v8::Global<v8::Private> v8_inspector::V8Console::m_taskInfoKey
private

Definition at line 220 of file v8-console.h.

◆ m_tasks

std::map<void*, std::unique_ptr<TaskInfo> > v8_inspector::V8Console::m_tasks
private

Definition at line 216 of file v8-console.h.

◆ m_taskTemplate

v8::Global<v8::ObjectTemplate> v8_inspector::V8Console::m_taskTemplate
private

Definition at line 225 of file v8-console.h.


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