#include "src/d8/async-hooks-wrapper.h"
#include "include/v8-function.h"
#include "include/v8-local-handle.h"
#include "include/v8-primitive.h"
#include "include/v8-template.h"
#include "src/api/api-inl.h"
#include "src/api/api.h"
#include "src/d8/d8.h"
#include "src/execution/isolate-inl.h"
#include "src/objects/managed-inl.h"
namespace v8 {
namespace {
std::shared_ptr<AsyncHooksWrap> UnwrapHook(
const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void EnableHook(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void DisableHook(const v8::FunctionCallbackInfo<v8::Value>& info) { … }
}
AsyncHooks::AsyncHooks(v8::Isolate* v8_isolate) : … { … }
AsyncHooks::~AsyncHooks() { … }
void AsyncHooksWrap::Enable() { … }
void AsyncHooksWrap::Disable() { … }
v8::Local<v8::Function> AsyncHooksWrap::init_function() const { … }
void AsyncHooksWrap::set_init_function(v8::Local<v8::Function> value) { … }
v8::Local<v8::Function> AsyncHooksWrap::before_function() const { … }
void AsyncHooksWrap::set_before_function(v8::Local<v8::Function> value) { … }
v8::Local<v8::Function> AsyncHooksWrap::after_function() const { … }
void AsyncHooksWrap::set_after_function(v8::Local<v8::Function> value) { … }
v8::Local<v8::Function> AsyncHooksWrap::promiseResolve_function() const { … }
void AsyncHooksWrap::set_promiseResolve_function(
v8::Local<v8::Function> value) { … }
async_id_t AsyncHooks::GetExecutionAsyncId() const { … }
async_id_t AsyncHooks::GetTriggerAsyncId() const { … }
Local<Object> AsyncHooks::CreateHook(
const v8::FunctionCallbackInfo<v8::Value>& info) { … }
void AsyncHooks::ShellPromiseHook(PromiseHookType type, Local<Promise> promise,
Local<Value> parent) { … }
void AsyncHooks::PromiseHookDispatch(PromiseHookType type,
Local<Promise> promise,
Local<Value> parent,
const AsyncHooksWrap& wrap,
AsyncHooks* hooks) { … }
}