#include "test/inspector/task-runner.h"
#include "include/v8-exception.h"
#include "include/v8-local-handle.h"
#include "include/v8-primitive.h"
#include "src/flags/flags.h"
#include "src/init/v8.h"
#include "src/libplatform/default-platform.h"
#include "src/utils/locked-queue-inl.h"
#if !defined(V8_OS_WIN)
#include <unistd.h>
#endif
namespace v8 {
namespace internal {
namespace {
void ReportUncaughtException(v8::Isolate* isolate,
const v8::TryCatch& try_catch) { … }
}
TaskRunner::TaskRunner(
InspectorIsolateData::SetupGlobalTasks setup_global_tasks,
CatchExceptions catch_exceptions, v8::base::Semaphore* ready_semaphore,
v8::StartupData* startup_data, WithInspector with_inspector)
: … { … }
TaskRunner::~TaskRunner() { … }
void TaskRunner::Run() { … }
void TaskRunner::RunMessageLoop(bool only_protocol) { … }
static void RunMessageLoopInInterrupt(v8::Isolate* isolate, void* task_runner) { … }
void TaskRunner::InterruptForMessages() { … }
void TaskRunner::QuitMessageLoop() { … }
void TaskRunner::Append(std::unique_ptr<Task> task) { … }
void TaskRunner::Terminate() { … }
std::unique_ptr<TaskRunner::Task> TaskRunner::GetNext(bool only_protocol) { … }
}
}