Lines Matching refs:job
359 // job.
407 CompilationJob::Status FinalizeUnoptimizedCompilationJob(CompilationJob* job) {
408 CompilationJob::Status status = job->FinalizeJob();
410 InstallUnoptimizedCode(job->info());
411 job->RecordUnoptimizedCompilationStats();
430 std::unique_ptr<CompilationJob> job(GetUnoptimizedCompilationJob(info));
431 if (job->PrepareJob() != CompilationJob::SUCCEEDED) return false;
432 if (job->ExecuteJob() != CompilationJob::SUCCEEDED) return false;
433 if (FinalizeUnoptimizedCompilationJob(job.get()) !=
527 bool GetOptimizedCodeNow(CompilationJob* job) {
528 CompilationInfo* info = job->info();
545 if (job->PrepareJob() != CompilationJob::SUCCEEDED ||
546 job->ExecuteJob() != CompilationJob::SUCCEEDED ||
547 job->FinalizeJob() != CompilationJob::SUCCEEDED) {
557 job->RecordOptimizedCompilationStats();
564 bool GetOptimizedCodeLater(CompilationJob* job) {
565 CompilationInfo* info = job->info();
600 if (job->PrepareJob() != CompilationJob::SUCCEEDED) return false;
601 isolate->optimizing_compile_dispatcher()->QueueForOptimization(job);
653 std::unique_ptr<CompilationJob> job(
656 CompilationInfo* info = job->info();
716 if (GetOptimizedCodeLater(job.get())) {
717 job.release(); // The background recompile job owns this now.
721 if (GetOptimizedCodeNow(job.get())) return info->code();
728 CompilationJob::Status FinalizeOptimizedCompilationJob(CompilationJob* job) {
729 CompilationInfo* info = job->info();
754 if (job->state() == CompilationJob::State::kReadyToFinalize) {
756 job->RetryOptimization(kOptimizationDisabled);
758 job->RetryOptimization(kBailedOutDueToDependencyChange);
759 } else if (job->FinalizeJob() == CompilationJob::SUCCEEDED) {
760 job->RecordOptimizedCompilationStats();
778 DCHECK(job->state() == CompilationJob::State::kFailed);
1677 std::unique_ptr<CompilationJob> job(GetUnoptimizedCompilationJob(info));
1678 if (job->PrepareJob() != CompilationJob::SUCCEEDED) {
1681 return job.release();
1685 // Take ownership of compilation job. Deleting job also tears down the zone.
1686 std::unique_ptr<CompilationJob> job(raw_job);
1688 VMState<COMPILER> state(job->info()->isolate());
1689 if (job->info()->IsOptimizing()) {
1690 return FinalizeOptimizedCompilationJob(job.get()) ==
1693 if (FinalizeUnoptimizedCompilationJob(job.get()) ==
1696 job->info());