Home
last modified time | relevance | path

Searched refs:async_id (Results 1 - 10 of 10) sorted by relevance

/third_party/node/src/
H A Dasync_wrap.cc75 for (auto async_id : destroy_async_id_list) { in DestroyAsyncIdsCallback()
79 Local<Value> async_id_value = Number::New(env->isolate(), async_id); in DestroyAsyncIdsCallback()
89 void Emit(Environment* env, double async_id, AsyncHooks::Fields type, in Emit() argument
97 Local<Value> async_id_value = Number::New(env->isolate(), async_id); in Emit()
103 void AsyncWrap::EmitPromiseResolve(Environment* env, double async_id) { in EmitPromiseResolve() argument
104 Emit(env, async_id, AsyncHooks::kPromiseResolve, in EmitPromiseResolve()
125 void AsyncWrap::EmitBefore(Environment* env, double async_id) { in EmitBefore() argument
126 Emit(env, async_id, AsyncHooks::kBefore, in EmitBefore()
131 void AsyncWrap::EmitTraceEventAfter(ProviderType type, double async_id) { in EmitTraceEventAfter() argument
137 #PROVIDER "_CALLBACK", static_cast<int64_t>(async_id)); \ in EmitTraceEventAfter()
147 EmitAfter(Environment* env, double async_id) EmitAfter() argument
259 double async_id = args[0]->NumberValue(env->context()).FromJust(); PushAsyncContext() local
267 double async_id = args[0]->NumberValue(env->context()).FromJust(); PopAsyncContext() local
544 EmitDestroy(Environment* env, double async_id) EmitDestroy() argument
628 EmitAsyncInit(Environment* env, Local<Object> object, Local<String> type, double async_id, double trigger_async_id) EmitAsyncInit() argument
[all...]
H A Dnode_task_queue.cc116 double async_id = AsyncWrap::kInvalidAsyncId; in PromiseRejectCallback() local
121 .To(&async_id)) return; in PromiseRejectCallback()
125 if (async_id == AsyncWrap::kInvalidAsyncId && in PromiseRejectCallback()
130 .To(&async_id)) return; in PromiseRejectCallback()
136 if (async_id != AsyncWrap::kInvalidAsyncId && in PromiseRejectCallback()
139 async_id, trigger_async_id, promise); in PromiseRejectCallback()
145 if (async_id != AsyncWrap::kInvalidAsyncId && in PromiseRejectCallback()
147 env->execution_async_id() == async_id) { in PromiseRejectCallback()
150 env->async_hooks()->pop_async_context(async_id); in PromiseRejectCallback()
H A Dasync_wrap.h168 double async_id,
171 static void EmitDestroy(Environment* env, double async_id);
172 static void EmitBefore(Environment* env, double async_id);
173 static void EmitAfter(Environment* env, double async_id);
174 static void EmitPromiseResolve(Environment* env, double async_id);
179 static void EmitTraceEventAfter(ProviderType type, double async_id);
H A Dnode.h1115 typedef double async_id; typedef
1117 ::node::async_id async_id; member
1118 ::node::async_id trigger_async_id;
1174 NODE_EXTERN async_id AsyncHooksGetExecutionAsyncId(v8::Isolate* isolate);
1177 NODE_EXTERN async_id AsyncHooksGetTriggerAsyncId(v8::Isolate* isolate);
1189 async_id trigger_async_id = -1);
1194 async_id trigger_async_id = -1);
1284 async_id trigger_async_id = -1);
1307 async_id get_async_i
[all...]
H A Denv.cc93 void AsyncHooks::push_async_context(double async_id, in push_async_context() argument
99 CHECK_GE(async_id, -1); in push_async_context()
108 async_id_fields_[kExecutionAsyncId] = async_id; in push_async_context()
126 bool AsyncHooks::pop_async_context(double async_id) { in pop_async_context() argument
131 // Ask for the async_id to be restored as a check that the stack in pop_async_context()
134 async_id_fields_[kExecutionAsyncId] != async_id)) { in pop_async_context()
135 FailWithCorruptedAsyncStack(async_id); in pop_async_context()
H A Denv.h279 void push_async_context(double async_id,
282 bool pop_async_context(double async_id);
/third_party/node/src/api/
H A Dasync_resource.cc17 async_id trigger_async_id) in AsyncResource()
57 async_id AsyncResource::get_async_id() const { in get_async_id()
58 return async_context_.async_id; in get_async_id()
61 async_id AsyncResource::get_trigger_async_id() const { in get_trigger_async_id()
H A Dhooks.cc179 async_id AsyncHooksGetExecutionAsyncId(Isolate* isolate) { in AsyncHooksGetExecutionAsyncId()
185 async_id AsyncHooksGetTriggerAsyncId(Isolate* isolate) { in AsyncHooksGetTriggerAsyncId()
195 async_id trigger_async_id) { in EmitAsyncInit()
206 async_id trigger_async_id) { in EmitAsyncInit()
221 AsyncWrap::EmitAsyncInit(env, resource, name, context.async_id, in EmitAsyncInit()
232 AsyncWrap::EmitDestroy(env, asyncContext.async_id); in EmitAsyncDestroy()
H A Dcallback.cc80 async_context_.async_id, async_context_.trigger_async_id, object); in InternalCallbackScope()
84 if (asyncContext.async_id != 0 && !skip_hooks_) { in InternalCallbackScope()
87 AsyncWrap::EmitBefore(env, asyncContext.async_id); in InternalCallbackScope()
116 if (!failed_ && async_context_.async_id != 0 && !skip_hooks_) { in Close()
117 AsyncWrap::EmitAfter(env_, async_context_.async_id); in Close()
121 env_->async_hooks()->pop_async_context(async_context_.async_id); in Close()
207 args[0] = v8::Number::New(env->isolate(), asyncContext.async_id); in InternalMakeCallback()
/third_party/node/deps/v8/src/d8/
H A Dasync-hooks-wrapper.cc189 Local<Integer> async_id = Integer::New(isolate, hooks->current_async_id); in ShellPromiseHook() local
194 async_id); in ShellPromiseHook()
251 Local<Value> async_id = in PromiseHookDispatch() local
254 Local<Value> args[1] = {async_id}; in PromiseHookDispatch()
260 async_id, String::NewFromUtf8Literal(v8_isolate, "PROMISE"), in PromiseHookDispatch()

Completed in 12 milliseconds