Home
last modified time | relevance | path

Searched refs:MicroJobQueue (Results 1 – 25 of 29) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/jobs/
Dmicro_job_queue.h30 class MicroJobQueue final : public Record {
32 static MicroJobQueue *Cast(TaggedObject *object) in Cast()
35 return static_cast<MicroJobQueue *>(object); in Cast()
38 static uint32_t GetPromiseQueueSize(JSThread *thread, JSHandle<MicroJobQueue> jobQueue);
39 static void EnqueueJob(JSThread *thread, JSHandle<MicroJobQueue> jobQueue, QueueType queueType,
41 static void ExecutePendingJob(JSThread *thread, JSHandle<MicroJobQueue> jobQueue);
42 static bool HasPendingJob(JSThread *thread, JSHandle<MicroJobQueue> jobQueue);
Dmicro_job_queue.cpp30 uint32_t MicroJobQueue::GetPromiseQueueSize(JSThread *thread, JSHandle<MicroJobQueue> jobQueue) in GetPromiseQueueSize()
37 void MicroJobQueue::EnqueueJob(JSThread *thread, JSHandle<MicroJobQueue> jobQueue, QueueType queueT… in EnqueueJob()
61 void MicroJobQueue::ExecutePendingJob(JSThread *thread, JSHandle<MicroJobQueue> jobQueue) in ExecutePendingJob()
91 bool MicroJobQueue::HasPendingJob(JSThread *thread, JSHandle<MicroJobQueue> jobQueue) in HasPendingJob()
/arkcompiler/ets_runtime/ecmascript/jobs/tests/
Dmicro_job_queue_test.cpp27 using MicroJobQueue = ecmascript::job::MicroJobQueue; typedef
74 JSHandle<MicroJobQueue> handleMicroJobQueue = factory->NewMicroJobQueue(); in HWTEST_F_L0()
102 JSHandle<MicroJobQueue> handleMicrojob = thread->GetCurrentEcmaContext()->GetMicroJobQueue(); in HWTEST_F_L0()
112 MicroJobQueue::EnqueueJob(thread, handleMicrojob, type, promiseReactionsJob, arguments); in HWTEST_F_L0()
138 JSHandle<MicroJobQueue> handleMicrojob = thread->GetCurrentEcmaContext()->GetMicroJobQueue(); in HWTEST_F_L0()
146 MicroJobQueue::EnqueueJob(thread, handleMicrojob, type, promiseReactionsJob, arguments1); in HWTEST_F_L0()
152 MicroJobQueue::EnqueueJob(thread, handleMicrojob, type, promiseResolveThenableJob, arguments2); in HWTEST_F_L0()
186 JSHandle<MicroJobQueue> handleMicrojob = thread->GetCurrentEcmaContext()->GetMicroJobQueue(); in HWTEST_F_L0()
199MicroJobQueue::EnqueueJob(thread, handleMicrojob, QueueType::QUEUE_PROMISE, promiseReactionsJob, a… in HWTEST_F_L0()
207 MicroJobQueue::ExecutePendingJob(thread, handleMicrojob); in HWTEST_F_L0()
[all …]
/arkcompiler/ets_runtime/ecmascript/
Djs_finalization_registry.cpp144 JSHandle<job::MicroJobQueue> &job, JSHandle<JSFunction> &func) in DealCallBackOfMap()
158 … job::MicroJobQueue::EnqueueJob(thread, job, job::QueueType::QUEUE_PROMISE, func, argv); in DealCallBackOfMap()
177 JSHandle<job::MicroJobQueue> job = thread->GetCurrentEcmaContext()->GetMicroJobQueue(); in CleanupFinalizationRegistry()
193 … job::MicroJobQueue::EnqueueJob(thread, job, job::QueueType::QUEUE_PROMISE, func, argv); in CleanupFinalizationRegistry()
Djs_promise.cpp168 JSHandle<job::MicroJobQueue> job = thread->GetCurrentEcmaContext()->GetMicroJobQueue(); in TriggerPromiseReactions()
179 …job::MicroJobQueue::EnqueueJob(thread, job, job::QueueType::QUEUE_PROMISE, promiseReactionsJob, ar… in TriggerPromiseReactions()
Decma_context.cpp324 job::MicroJobQueue::ExecutePendingJob(thread_, GetMicroJobQueue()); in CommonInvokeEcmaEntrypoint()
422 …job::MicroJobQueue::ExecutePendingJob(thread_, thread_->GetCurrentEcmaContext()->GetMicroJobQueue(… in CJSExecution()
669 return job::MicroJobQueue::HasPendingJob(thread_, GetMicroJobQueue()); in HasPendingJob()
680 job::MicroJobQueue::ExecutePendingJob(thread_, GetMicroJobQueue()); in ExecutePromisePendingJob()
704 void EcmaContext::SetMicroJobQueue(job::MicroJobQueue *queue) in SetMicroJobQueue()
715 JSHandle<job::MicroJobQueue> EcmaContext::GetMicroJobQueue() const in GetMicroJobQueue()
717 return JSHandle<job::MicroJobQueue>(reinterpret_cast<uintptr_t>(&microJobQueue_)); in GetMicroJobQueue()
Decma_context.h68 class MicroJobQueue; variable
280 JSHandle<job::MicroJobQueue> GetMicroJobQueue() const;
286 void SetMicroJobQueue(job::MicroJobQueue *queue);
Decma_vm.h68 class MicroJobQueue; variable
Dglobal_env_constants.cpp165 … factory->NewEcmaReadOnlyHClass(hClass, job::MicroJobQueue::SIZE, JSType::MICRO_JOB_QUEUE)); in InitRootsClass()
Dobject_factory.h163 class MicroJobQueue; variable
321 JSHandle<job::MicroJobQueue> NewMicroJobQueue();
Ddump.cpp131 using MicroJobQueue = panda::ecmascript::job::MicroJobQueue; typedef
915 MicroJobQueue::Cast(obj)->Dump(os); in DumpObject()
2896 void MicroJobQueue::Dump(std::ostream &os) const in Dump()
4116 MicroJobQueue::Cast(obj)->DumpForSnapshot(vec); in DumpObject()
5448 void MicroJobQueue::DumpForSnapshot(std::vector<Reference> &vec) const in DumpForSnapshot()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_finalization_registry_test.cpp193 …job::MicroJobQueue::ExecutePendingJob(thread, thread->GetCurrentEcmaContext()->GetMicroJobQueue()); in HWTEST_F_L0()
227 …job::MicroJobQueue::ExecutePendingJob(thread, thread->GetCurrentEcmaContext()->GetMicroJobQueue()); in HWTEST_F_L0()
264 …job::MicroJobQueue::ExecutePendingJob(thread, thread->GetCurrentEcmaContext()->GetMicroJobQueue()); in HWTEST_F_L0()
301 …job::MicroJobQueue::ExecutePendingJob(thread, thread->GetCurrentEcmaContext()->GetMicroJobQueue()); in HWTEST_F_L0()
341 …job::MicroJobQueue::ExecutePendingJob(thread, thread->GetCurrentEcmaContext()->GetMicroJobQueue()); in HWTEST_F_L0()
387 …job::MicroJobQueue::ExecutePendingJob(thread, thread->GetCurrentEcmaContext()->GetMicroJobQueue()); in HWTEST_F_L0()
467 …job::MicroJobQueue::ExecutePendingJob(thread, thread->GetCurrentEcmaContext()->GetMicroJobQueue()); in HWTEST_F_L0()
Ddump_test.cpp1012 CHECK_DUMP_FIELDS(Record::SIZE, ecmascript::job::MicroJobQueue::SIZE, 2U); in HWTEST_F_L0()
1013 JSHandle<ecmascript::job::MicroJobQueue> microJob = factory->NewMicroJobQueue(); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_finalization_registry_test.cpp201 …job::MicroJobQueue::ExecutePendingJob(thread, vm->GetJSThread()->GetCurrentEcmaContext()->GetMicro… in HWTEST_F_L0()
254 …job::MicroJobQueue::ExecutePendingJob(thread, vm->GetJSThread()->GetCurrentEcmaContext()->GetMicro… in HWTEST_F_L0()
308 …job::MicroJobQueue::ExecutePendingJob(thread, vm->GetJSThread()->GetCurrentEcmaContext()->GetMicro… in HWTEST_F_L0()
360 …job::MicroJobQueue::ExecutePendingJob(thread, vm->GetJSThread()->GetCurrentEcmaContext()->GetMicro… in HWTEST_F_L0()
439 …job::MicroJobQueue::ExecutePendingJob(thread, vm->GetJSThread()->GetCurrentEcmaContext()->GetMicro… in HWTEST_F_L0()
489 …job::MicroJobQueue::ExecutePendingJob(thread, vm->GetJSThread()->GetCurrentEcmaContext()->GetMicro… in HWTEST_F_L0()
531 …job::MicroJobQueue::ExecutePendingJob(thread, vm->GetJSThread()->GetCurrentEcmaContext()->GetMicro… in HWTEST_F_L0()
Dbuiltins_promise_test.cpp440 job::MicroJobQueue::ExecutePendingJob(thread, microJobQueue); in HWTEST_F_L0()
538 job::MicroJobQueue::ExecutePendingJob(thread, microJobQueue); in HWTEST_F_L0()
592 job::MicroJobQueue::ExecutePendingJob(thread, microJobQueue); in HWTEST_F_L0()
648 job::MicroJobQueue::ExecutePendingJob(thread, microJobQueue); in HWTEST_F_L0()
703 job::MicroJobQueue::ExecutePendingJob(thread, microJobQueue); in HWTEST_F_L0()
Dbuiltins_weak_ref_test.cpp186 …job::MicroJobQueue::ExecutePendingJob(thread, vm->GetJSThread()->GetCurrentEcmaContext()->GetMicro… in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/dfx/hprof/tests/
Dhprof_test.cpp85 using MicroJobQueue = panda::ecmascript::job::MicroJobQueue; typedef
/arkcompiler/runtime_core/static_core/docs/coroutines/
Dcoroutines.md404 Awaiting `bar`'s promise leads to call of MicroJobQueue.
411 > virtual void MicroJobQueue::put(Promise promise, Coroutine coro) override {
435 The method creates a JS mirror of bar's promise and adds it to JS engine's MicroJobQueue.<br>
539 > virtual void MicroJobQueue::put(Promise promise, Coroutine coro) override {
564 MicroJobQueue calls `then` method for `bar` promise. The method schedules `foo` coroutine.<br>
/arkcompiler/ets_runtime/ecmascript/debugger/
Ddropframe_manager.cpp251 … uint32_t queueSize = job::MicroJobQueue::GetPromiseQueueSize(thread, context->GetMicroJobQueue()); in PushPromiseQueueSizeRecord()
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_promise_handler.cpp97 JSHandle<job::MicroJobQueue> job = thread->GetCurrentEcmaContext()->GetMicroJobQueue(); in Resolve()
98 …job::MicroJobQueue::EnqueueJob(thread, job, job::QueueType::QUEUE_PROMISE, promiseResolveThenableJ… in Resolve()
Dbuiltins_promise.cpp394 JSHandle<job::MicroJobQueue> job = thread->GetCurrentEcmaContext()->GetMicroJobQueue(); in PerformPromiseThen()
430 …job::MicroJobQueue::EnqueueJob(thread, job, job::QueueType::QUEUE_PROMISE, promiseReactionsJob, ar… in PerformPromiseThen()
442 …job::MicroJobQueue::EnqueueJob(thread, job, job::QueueType::QUEUE_PROMISE, promiseReactionsJob, ar… in PerformPromiseThen()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi.cpp160 using ecmascript::job::MicroJobQueue;
Djsnapi_expo.cpp169 using ecmascript::job::MicroJobQueue;
3713 JSHandle<MicroJobQueue> job = thread->GetCurrentEcmaContext()->GetMicroJobQueue(); in SetHostEnqueueJob()
3714 MicroJobQueue::EnqueueJob(thread, job, QueueType::QUEUE_PROMISE, fun, array); in SetHostEnqueueJob()
/arkcompiler/ets_runtime/ecmascript/mem/
Dobject_xray.h473 job::MicroJobQueue::Cast(object)->VisitRangeSlot<visitType>(visitor); in VisitObjectBody()
/arkcompiler/ets_runtime/ecmascript/module/
Djs_module_source_text.cpp955 …job::MicroJobQueue::ExecutePendingJob(thread, thread->GetCurrentEcmaContext()->GetMicroJobQueue()); in Evaluate()
975 …job::MicroJobQueue::ExecutePendingJob(thread, thread->GetCurrentEcmaContext()->GetMicroJobQueue()); in EvaluateForConcurrent()

12