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

Unified Diff: src/compiler/pipeline.h

Issue 1872483002: [compiler] Make OptimizedCompileJob agnostic from backend. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Prevent endless recompile. Created 4 years, 8 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 | « src/compiler.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/pipeline.h
diff --git a/src/compiler/pipeline.h b/src/compiler/pipeline.h
index edb8191862141604e5d0a6d52fa7eff23173c003..e22c1db269456bebb6a29e7e276952fdccaab089 100644
--- a/src/compiler/pipeline.h
+++ b/src/compiler/pipeline.h
@@ -13,6 +13,7 @@ namespace v8 {
namespace internal {
class CompilationInfo;
+class OptimizedCompileJob;
class RegisterConfiguration;
namespace compiler {
@@ -26,7 +27,7 @@ class Schedule;
class Pipeline {
public:
- explicit Pipeline(CompilationInfo* info) : info_(info) {}
+ explicit Pipeline(CompilationInfo* info) : info_(info), data_(nullptr) {}
// Run the entire pipeline and generate a handle to a code object.
Handle<Code> GenerateCode();
@@ -57,6 +58,9 @@ class Pipeline {
Graph* graph,
Schedule* schedule = nullptr);
+ // Returns a new compilation job for the given compilation info.
+ static OptimizedCompileJob* NewCompilationJob(CompilationInfo* info);
+
private:
// Helpers for executing pipeline phases.
template <typename Phase>
« no previous file with comments | « src/compiler.cc ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698