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

#include <v8-console.h>

Collaboration diagram for v8_inspector::TaskInfo:

Public Member Functions

 TaskInfo (v8::Isolate *isolate, V8Console *console, v8::Local< v8::Object > task)
 
void * Id () const
 
void Cancel ()
 

Private Attributes

v8::Global< v8::Objectm_task
 
V8Consolem_console = nullptr
 

Detailed Description

Each JS task object created via console.createTask has a corresponding TaskInfo object on the C++ side (in a 1:1 relationship).

The TaskInfo holds on weakly to the JS task object. The JS task objects uses a private symbol to store a pointer to the TaskInfo object (via v8::External).

The TaskInfo objects holds all the necessary information we need to properly cancel the corresponding async task then the JS task object gets GC'ed.

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

Constructor & Destructor Documentation

◆ TaskInfo()

v8_inspector::TaskInfo::TaskInfo ( v8::Isolate * isolate,
V8Console * console,
v8::Local< v8::Object > task )

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

Here is the call graph for this function:

Member Function Documentation

◆ Cancel()

void v8_inspector::TaskInfo::Cancel ( )
inline

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

Here is the call graph for this function:

◆ Id()

void * v8_inspector::TaskInfo::Id ( ) const
inline

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

Here is the caller graph for this function:

Member Data Documentation

◆ m_console

V8Console* v8_inspector::TaskInfo::m_console = nullptr
private

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

◆ m_task

v8::Global<v8::Object> v8_inspector::TaskInfo::m_task
private

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


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