![]() |
mutable
A Database System for Research and Fast Prototyping
|
#include <V8Engine.hpp>
Public Member Functions | |
V8InspectorClientImpl (int16_t port, v8::Isolate *isolate) | |
V8InspectorClientImpl (const V8InspectorClientImpl &)=delete | |
~V8InspectorClientImpl () | |
void | start (std::function< void(void)> code) |
void | register_context (v8::Local< v8::Context > context) |
Register the context object in the V8Inspector instance. | |
void | deregister_context (v8::Local< v8::Context > context) |
Deregister the context object in the V8Inspector instance. | |
void | on_message (std::string_view sv) |
void | runMessageLoopOnPause (int) override |
Synchronously consume all front end (CDT) debugging messages. | |
void | quitMessageLoopOnPause () override |
Called by V8 when no more inspector messages are pending. | |
void | waitFrontendMessageOnPause () |
Private Attributes | |
v8::Isolate * | isolate_ = nullptr |
WebSocketServer | server_ |
std::unique_ptr< WebSocketServer::Connection > | conn_ |
std::unique_ptr< WebSocketChannel > | channel_ |
std::unique_ptr< v8_inspector::V8Inspector > | inspector_ |
std::unique_ptr< v8_inspector::V8InspectorSession > | session_ |
std::function< void(void)> | code_ |
the code to execute in the debugger | |
bool | is_terminated_ = true |
Definition at line 35 of file V8Engine.hpp.
V8InspectorClientImpl::V8InspectorClientImpl | ( | int16_t | port, |
v8::Isolate * | isolate | ||
) |
Definition at line 154 of file V8Engine.cpp.
References m::WebSocketServer::await(), channel_, conn_, inspector_, isolate_, server_, and session_.
|
delete |
|
inline |
Definition at line 51 of file V8Engine.hpp.
References channel_, conn_, inspector_, and session_.
void V8InspectorClientImpl::deregister_context | ( | v8::Local< v8::Context > | context | ) |
Deregister the context object in the V8Inspector instance.
Definition at line 184 of file V8Engine.cpp.
References inspector_.
Referenced by m::wasm::detail::run_inspector().
void V8InspectorClientImpl::on_message | ( | std::string_view | sv | ) |
Definition at line 189 of file V8Engine.cpp.
References code_, isolate_, session_, and waitFrontendMessageOnPause().
|
inlineoverride |
Called by V8 when no more inspector messages are pending.
Definition at line 75 of file V8Engine.hpp.
References is_terminated_.
void V8InspectorClientImpl::register_context | ( | v8::Local< v8::Context > | context | ) |
Register the context object in the V8Inspector instance.
Definition at line 178 of file V8Engine.cpp.
References inspector_.
Referenced by m::wasm::detail::run_inspector().
|
override |
Synchronously consume all front end (CDT) debugging messages.
Definition at line 213 of file V8Engine.cpp.
References m::wasm::and, conn_, is_terminated_, and isolate_.
|
inline |
Definition at line 58 of file V8Engine.hpp.
Referenced by m::wasm::detail::run_inspector().
|
inline |
|
private |
Definition at line 41 of file V8Engine.hpp.
Referenced by V8InspectorClientImpl(), and ~V8InspectorClientImpl().
|
private |
the code to execute in the debugger
Definition at line 44 of file V8Engine.hpp.
Referenced by on_message(), and start().
|
private |
Definition at line 40 of file V8Engine.hpp.
Referenced by runMessageLoopOnPause(), start(), V8InspectorClientImpl(), and ~V8InspectorClientImpl().
|
private |
Definition at line 42 of file V8Engine.hpp.
Referenced by deregister_context(), register_context(), V8InspectorClientImpl(), and ~V8InspectorClientImpl().
|
private |
Definition at line 45 of file V8Engine.hpp.
Referenced by quitMessageLoopOnPause(), runMessageLoopOnPause(), and waitFrontendMessageOnPause().
|
private |
Definition at line 38 of file V8Engine.hpp.
Referenced by on_message(), runMessageLoopOnPause(), and V8InspectorClientImpl().
|
private |
Definition at line 39 of file V8Engine.hpp.
Referenced by V8InspectorClientImpl().
|
private |
Definition at line 43 of file V8Engine.hpp.
Referenced by on_message(), V8InspectorClientImpl(), and ~V8InspectorClientImpl().