Lines Matching defs:job
362 v8::Local<v8::FunctionTemplate> job = NewFunctionTemplate(isolate, New);
363 job->Inherit(AsyncWrap::GetConstructorTemplate(env));
364 job->InstanceTemplate()->SetInternalFieldCount(
366 SetProtoMethod(isolate, job, "run", Run);
367 SetConstructorFunction(env->context(), target, "FixedSizeBlobCopyJob", job);
396 FixedSizeBlobCopyJob* job;
397 ASSIGN_OR_RETURN_UNWRAP(&job, args.Holder());
398 job->destination_ =
399 ArrayBuffer::NewBackingStore(env->isolate(), job->length_);
400 if (job->mode() == FixedSizeBlobCopyJob::Mode::ASYNC)
401 return job->ScheduleWork();
403 job->DoThreadPoolWork();
405 ArrayBuffer::New(env->isolate(), job->destination_));