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

Unified Diff: src/compiler.h

Issue 1179393008: [turbofan] Enable concurrent (re)compilation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Also run late graph trimming concurrently. Created 5 years, 6 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 | « no previous file | src/compiler.cc » ('j') | src/compiler/pipeline.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index c90bf91e596c8376062f6c770e03e4273752a47e..a93587161105c01468ad8541fe3a19576c2cb9e9 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -14,11 +14,20 @@
namespace v8 {
namespace internal {
+// Forward declarations.
class AstValueFactory;
class HydrogenCodeStub;
class ParseInfo;
class ScriptData;
+namespace compiler {
+
+// Forward declarations.
+class Pipeline;
+
+} // namespace compiler
+
+
struct OffsetRange {
OffsetRange(int from, int to) : from(from), to(to) {}
int from;
@@ -514,11 +523,13 @@ class OptimizedCompileJob: public ZoneObject {
public:
explicit OptimizedCompileJob(CompilationInfo* info)
: info_(info),
+ pipeline_(nullptr),
graph_builder_(NULL),
graph_(NULL),
chunk_(NULL),
last_status_(FAILED),
- awaiting_install_(false) { }
+ awaiting_install_(false) {}
+ ~OptimizedCompileJob();
enum Status {
FAILED, BAILED_OUT, SUCCEEDED
@@ -530,6 +541,7 @@ class OptimizedCompileJob: public ZoneObject {
Status last_status() const { return last_status_; }
CompilationInfo* info() const { return info_; }
+ compiler::Pipeline* pipeline() const { return pipeline_; }
Isolate* isolate() const { return info()->isolate(); }
Status RetryOptimization(BailoutReason reason) {
@@ -550,7 +562,8 @@ class OptimizedCompileJob: public ZoneObject {
bool IsWaitingForInstall() { return awaiting_install_; }
private:
- CompilationInfo* info_;
+ CompilationInfo* const info_;
+ compiler::Pipeline* pipeline_;
HOptimizedGraphBuilder* graph_builder_;
HGraph* graph_;
LChunk* chunk_;
« no previous file with comments | « no previous file | src/compiler.cc » ('j') | src/compiler/pipeline.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698