5#ifndef V8_INSPECTOR_V8_CONSOLE_H_
6#define V8_INSPECTOR_V8_CONSOLE_H_
23class InspectedContext;
53 static void accessorGetterCallback(
129 template <
void (V8Console::*func)(const v8::FunctionCallbackInfo<v8::Value>&)>
132 static_cast<V8Console*
>(info.Data().As<v8::External>()->Value());
133 (console->*func)(info);
136 template <
void (V8Console::*func)(const v8::FunctionCallbackInfo<v8::Value>&,
140 info.Data().As<v8::ArrayBuffer>()->GetBackingStore()->Data());
141 (data->first->*func)(info, data->second);
147 info.Data().As<v8::ArrayBuffer>()->GetBackingStore()->Data());
178 int sessionId,
unsigned num);
216 std::map<void*, std::unique_ptr<TaskInfo>>
m_tasks;
249 return reinterpret_cast<void*
>(
reinterpret_cast<intptr_t
>(
this) << 1);
#define Assert(condition)
TaskInfo(v8::Isolate *isolate, V8Console *console, v8::Local< v8::Object > task)
v8::Global< v8::Object > m_task
v8::Global< v8::Context > m_context
v8::Global< v8::ArrayBuffer > m_thisReference
v8::Global< v8::Object > m_global
v8::Local< v8::ArrayBuffer > thisReference() const
v8::Local< v8::Object > global() const
v8::Local< v8::Context > context() const
CommandLineAPIScope & operator=(const CommandLineAPIScope &)=delete
v8::Global< v8::PrimitiveArray > m_installedMethods
v8::Local< v8::PrimitiveArray > installedMethods() const
CommandLineAPIScope(const CommandLineAPIScope &)=delete
v8::Local< v8::Object > commandLineAPI() const
v8::Global< v8::Object > m_commandLineAPI
void memoryGetterCallback(const v8::FunctionCallbackInfo< v8::Value > &)
void ProfileEnd(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
v8::Global< v8::ObjectTemplate > m_taskTemplate
void keysCallback(const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
void Group(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void debugFunctionCallback(const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
void monitorFunctionCallback(const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
void Error(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
std::pair< V8Console *, int > CommandLineAPIData
v8::Local< v8::ObjectTemplate > taskTemplate()
void Dir(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void inspectedObject(const v8::FunctionCallbackInfo< v8::Value > &, int sessionId, unsigned num)
void Log(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void inspectedObject4(const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
void inspectedObject0(const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
v8::Local< v8::Object > createCommandLineAPI(v8::Local< v8::Context > context, int sessionId)
void GroupEnd(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void installMemoryGetter(v8::Local< v8::Context > context, v8::Local< v8::Object > console)
void CountReset(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
V8InspectorImpl * m_inspector
void runTask(const v8::FunctionCallbackInfo< v8::Value > &)
void Clear(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
std::map< void *, std::unique_ptr< TaskInfo > > m_tasks
void undebugFunctionCallback(const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
void lastEvaluationResultCallback(const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
void queryObjectsCallback(const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
v8::Local< v8::Private > taskInfoKey()
void Table(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void Warn(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void Count(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void Profile(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void installAsyncStackTaggingAPI(v8::Local< v8::Context > context, v8::Local< v8::Object > console)
void Time(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void TimeStamp(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void createTask(const v8::FunctionCallbackInfo< v8::Value > &)
void inspectCallback(const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
void TimeEnd(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
V8Console(V8InspectorImpl *inspector)
void cancelConsoleTask(TaskInfo *taskInfo)
void Info(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void memorySetterCallback(const v8::FunctionCallbackInfo< v8::Value > &)
void valuesCallback(const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
v8::Global< v8::Private > m_taskInfoKey
void inspectedObject3(const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
std::map< void *, std::unique_ptr< TaskInfo > > & AllConsoleTasksForTest()
void unmonitorFunctionCallback(const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
void TimeLog(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void inspectedObject1(const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
void Trace(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void DirXml(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
static void call(const v8::FunctionCallbackInfo< v8::Value > &info)
void copyCallback(const v8::FunctionCallbackInfo< v8::Value > &, int sessionId)
void Debug(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
void inspectedObject2(const v8::FunctionCallbackInfo< v8::Value > &info, int sessionId)
void GroupCollapsed(const v8::debug::ConsoleCallArguments &, const v8::debug::ConsoleContext &consoleContext) override
base::Vector< const DirectHandle< Object > > args
v8::Local< v8::Context > m_context