Lines Matching refs:hooks
26 AsyncHooks* hooks = PerIsolateData::Get(isolate)->GetAsyncHooks(); in UnwrapHook() local
28 if (!hooks->async_hook_ctor.Get(isolate)->HasInstance(hook)) { in UnwrapHook()
171 AsyncHooks* hooks = PerIsolateData::Get(isolate)->GetAsyncHooks(); in ShellPromiseHook() local
188 ++hooks->current_async_id; in ShellPromiseHook()
189 Local<Integer> async_id = Integer::New(isolate, hooks->current_async_id); in ShellPromiseHook()
191 !promise->HasPrivate(currentContext, hooks->async_id_smb.Get(isolate)) in ShellPromiseHook()
193 promise->SetPrivate(currentContext, hooks->async_id_smb.Get(isolate), in ShellPromiseHook()
200 ->GetPrivate(currentContext, hooks->async_id_smb.Get(isolate)) in ShellPromiseHook()
202 promise->SetPrivate(currentContext, hooks->trigger_id_smb.Get(isolate), in ShellPromiseHook()
206 promise->SetPrivate(currentContext, hooks->trigger_id_smb.Get(isolate), in ShellPromiseHook()
212 promise->GetPrivate(currentContext, hooks->async_id_smb.Get(isolate)) in ShellPromiseHook()
218 ->GetPrivate(currentContext, hooks->trigger_id_smb.Get(isolate)) in ShellPromiseHook()
222 hooks->asyncContexts.push(ctx); in ShellPromiseHook()
224 hooks->asyncContexts.pop(); in ShellPromiseHook()
227 base::RecursiveMutexGuard lock_guard(&hooks->async_wraps_mutex_); in ShellPromiseHook()
228 for (const auto& wrap : hooks->async_wraps_) { in ShellPromiseHook()
229 PromiseHookDispatch(type, promise, parent, *wrap, hooks); in ShellPromiseHook()
244 AsyncHooks* hooks) { in PromiseHookDispatch() argument
246 v8::Isolate* v8_isolate = hooks->isolate_; in PromiseHookDispatch()
252 promise->GetPrivate(context, hooks->async_id_smb.Get(v8_isolate)) in PromiseHookDispatch()
261 promise->GetPrivate(context, hooks->trigger_id_smb.Get(v8_isolate)) in PromiseHookDispatch()