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

Unified Diff: src/compiler/pipeline.h

Issue 727733002: [turbofan] refactor pipeline to use hydrogen like Run calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years, 1 month 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
Index: src/compiler/pipeline.h
diff --git a/src/compiler/pipeline.h b/src/compiler/pipeline.h
index 78113000836243cbc19aac644116e9b892956e1e..6e0540db199bf04109d655b81b22ef9833fb468a 100644
--- a/src/compiler/pipeline.h
+++ b/src/compiler/pipeline.h
@@ -42,17 +42,31 @@ class Pipeline {
private:
CompilationInfo* info_;
+ PipelineData* data_;
+
+ // Helper for executing pipeline phases.
+ template <typename Phase>
+ void Run() {
+ Phase phase;
+ phase.Run(this->data_);
+ }
+
+ // Helper for executing the pipeline phases.
+ template <typename Phase, typename Arg0>
+ void Run(Arg0 arg_0) {
+ Phase phase;
+ phase.Run(this->data_, arg_0);
+ }
CompilationInfo* info() const { return info_; }
Isolate* isolate() { return info_->isolate(); }
- void ComputeSchedule(PipelineData* data);
- void VerifyAndPrintGraph(Graph* graph, const char* phase,
- bool untyped = false);
+ void RunPrintAndVerify(const char* phase, bool untyped = false);
Handle<Code> GenerateCode(Linkage* linkage, PipelineData* data);
};
-}
-}
-} // namespace v8::internal::compiler
+
+} // namespace compiler
+} // namespace internal
+} // namespace v8
#endif // V8_COMPILER_PIPELINE_H_

Powered by Google App Engine
This is Rietveld 408576698