Home
last modified time | relevance | path

Searched refs:pendingJob (Results 1 – 7 of 7) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/jobs/
Dhitrace_scope.cpp22 EnqueueJobScope::EnqueueJobScope(const JSHandle<PendingJob> &pendingJob, QueueType queueType) in EnqueueJobScope() argument
28 pendingJob->SetChainId(childId.GetChainId()); in EnqueueJobScope()
29 pendingJob->SetSpanId(childId.GetSpanId()); in EnqueueJobScope()
30 pendingJob->SetParentSpanId(childId.GetParentSpanId()); in EnqueueJobScope()
31 pendingJob->SetFlags(childId.GetFlags()); in EnqueueJobScope()
52 ExecuteJobScope::ExecuteJobScope(const JSHandle<PendingJob> &pendingJob) in ExecuteJobScope() argument
58 if (pendingJob->GetChainId() != 0) { in ExecuteJobScope()
59 hitraceId_.SetChainId(pendingJob->GetChainId()); in ExecuteJobScope()
60 hitraceId_.SetSpanId(pendingJob->GetSpanId()); in ExecuteJobScope()
61 hitraceId_.SetParentSpanId(pendingJob->GetParentSpanId()); in ExecuteJobScope()
[all …]
Dmicro_job_queue.cpp40 JSHandle<PendingJob> pendingJob(factory->NewPendingJob(job, argv)); in EnqueueJob() local
41 ENQUEUE_JOB_HITRACE(pendingJob, queueType); in EnqueueJob()
44 …ue *newPromiseQueue = TaggedQueue::Push(thread, promiseQueue, JSHandle<JSTaggedValue>(pendingJob)); in EnqueueJob()
49 …ueue *newScriptQueue = TaggedQueue::Push(thread, scriptQueue, JSHandle<JSTaggedValue>(pendingJob)); in EnqueueJob()
58 JSMutableHandle<PendingJob> pendingJob(thread, JSTaggedValue::Undefined()); in ExecutePendingJob() local
61 pendingJob.Update(promiseQueue->Pop(thread)); in ExecutePendingJob()
62 PendingJob::ExecutePendingJob(pendingJob, thread); in ExecutePendingJob()
71 pendingJob.Update(scriptQueue->Pop(thread)); in ExecutePendingJob()
72 PendingJob::ExecutePendingJob(pendingJob, thread); in ExecutePendingJob()
Dpending_job.h39 static JSTaggedValue ExecutePendingJob(const JSHandle<PendingJob> &pendingJob, JSThread *thread) in ExecutePendingJob() argument
42 EXECUTE_JOB_HITRACE(pendingJob); in ExecutePendingJob()
44 JSHandle<JSTaggedValue> job(thread, pendingJob->GetJob()); in ExecutePendingJob()
46 JSHandle<TaggedArray> argv(thread, pendingJob->GetArguments()); in ExecutePendingJob()
Dhitrace_scope.h33 EnqueueJobScope(const JSHandle<PendingJob> &pendingJob, job::QueueType queueType);
40 explicit ExecuteJobScope(const JSHandle<PendingJob> &pendingJob);
/arkcompiler/ets_runtime/ecmascript/
Decma_macros.h39 …#define ENQUEUE_JOB_HITRACE(pendingJob, queueType) job::EnqueueJobScope hitraceScope(pendingJob, q… argument
40 #define EXECUTE_JOB_HITRACE(pendingJob) job::ExecuteJobScope hitraceScope(pendingJob) argument
42 #define ENQUEUE_JOB_HITRACE(pendingJob, queueType) argument
43 #define EXECUTE_JOB_HITRACE(pendingJob) argument
/arkcompiler/ets_runtime/ecmascript/jobs/tests/
Dmicro_job_queue_test.cpp121 JSHandle<PendingJob> pendingJob(thread, result); in HWTEST_F_L0() local
122 …EXPECT_EQ(JSTaggedValue::SameValue(pendingJob->GetJob(), promiseReactionsJob.GetTaggedValue()), tr… in HWTEST_F_L0()
123 … EXPECT_EQ(JSTaggedValue::SameValue(pendingJob->GetArguments(), arguments.GetTaggedValue()), true); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/tests/
Ddump_test.cpp966 JSHandle<TaggedObject> pendingJob(thread, factory->NewObject(pendingClass)); in HWTEST_F_L0() local
967 … ecmascript::job::PendingJob::Cast(*pendingJob)->SetJob(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0()
968 … ecmascript::job::PendingJob::Cast(*pendingJob)->SetArguments(thread, JSTaggedValue::Undefined()); in HWTEST_F_L0()
969 DUMP_FOR_HANDLE(pendingJob) in HWTEST_F_L0()