Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(119)

Unified Diff: src/compiler-dispatcher/compiler-dispatcher-job.h

Issue 2171323002: Introduce a holder for compile jobs (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « BUILD.gn ('k') | src/compiler-dispatcher/compiler-dispatcher-job.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler-dispatcher/compiler-dispatcher-job.h
diff --git a/src/compiler-dispatcher/compiler-dispatcher-job.h b/src/compiler-dispatcher/compiler-dispatcher-job.h
new file mode 100644
index 0000000000000000000000000000000000000000..db113de650dd619eb0a562ba7880efb2d5d5f7ed
--- /dev/null
+++ b/src/compiler-dispatcher/compiler-dispatcher-job.h
@@ -0,0 +1,41 @@
+// Copyright 2016 the V8 project authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_
+#define V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_
+
+#include "src/base/macros.h"
+
+#include "src/handles.h"
+
+namespace v8 {
+namespace internal {
+
+class CompilationInfo;
+class Isolate;
+class JSFunction;
+
+enum class CompileJobStatus {
+ kInitial,
+};
+
+class CompilerDispatcherJob {
+ public:
+ CompilerDispatcherJob(Isolate* isolate, Handle<JSFunction> function);
+ ~CompilerDispatcherJob();
+
+ CompileJobStatus status() const { return status_; }
+
+ private:
+ CompileJobStatus status_ = CompileJobStatus::kInitial;
+ Isolate* isolate_;
+ Handle<JSFunction> function_; // Global handle.
+
+ DISALLOW_COPY_AND_ASSIGN(CompilerDispatcherJob);
+};
+
+} // namespace internal
+} // namespace v8
+
+#endif // V8_COMPILER_DISPATCHER_COMPILER_DISPATCHER_JOB_H_
« no previous file with comments | « BUILD.gn ('k') | src/compiler-dispatcher/compiler-dispatcher-job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698