Lines Matching full:work
207 uv_work_t *work = new(std::nothrow) uv_work_t; in DumpHeapSnapshotWithVm() local
208 if (work == nullptr) { in DumpHeapSnapshotWithVm()
209 LOG_ECMA(ERROR) << "work nullptr"; in DumpHeapSnapshotWithVm()
213 work->data = static_cast<void *>(dumpStruct); in DumpHeapSnapshotWithVm()
218 ret = uv_queue_work(loop, work, [](uv_work_t *) {}, [](uv_work_t *work, int32_t) { in DumpHeapSnapshotWithVm() argument
219 … struct DumpForSnapShotStruct *dump = static_cast<struct DumpForSnapShotStruct *>(work->data); in DumpHeapSnapshotWithVm()
224 delete work; in DumpHeapSnapshotWithVm()
228 delete work; in DumpHeapSnapshotWithVm()
242 delete work; in DumpHeapSnapshotWithVm()
299 uv_work_t *work = new(std::nothrow) uv_work_t; in TriggerSharedGCWithVm() local
300 if (work == nullptr) { in TriggerSharedGCWithVm()
301 LOG_ECMA(FATAL) << "DFXJSNApi::TriggerGCWithVm:work is nullptr"; in TriggerSharedGCWithVm()
304 work->data = static_cast<void *>(const_cast<EcmaVM *>(vm)); in TriggerSharedGCWithVm()
305 int ret = uv_queue_work(loop, work, [](uv_work_t *) {}, [](uv_work_t *work, int32_t) { in TriggerSharedGCWithVm() argument
306 EcmaVM *vm = static_cast<EcmaVM *>(work->data); in TriggerSharedGCWithVm()
312 delete work; in TriggerSharedGCWithVm()
316 delete work; in TriggerSharedGCWithVm()
335 uv_work_t *work = new(std::nothrow) uv_work_t; in TriggerGCWithVm() local
336 if (work == nullptr) { in TriggerGCWithVm()
337 LOG_ECMA(FATAL) << "DFXJSNApi::TriggerGCWithVm:work is nullptr"; in TriggerGCWithVm()
340 work->data = static_cast<void *>(const_cast<EcmaVM *>(vm)); in TriggerGCWithVm()
341 int ret = uv_queue_work(loop, work, [](uv_work_t *) {}, [](uv_work_t *work, int32_t) { in TriggerGCWithVm() argument
342 EcmaVM *vm = static_cast<EcmaVM *>(work->data); in TriggerGCWithVm()
345 delete work; in TriggerGCWithVm()
349 delete work; in TriggerGCWithVm()