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

Unified Diff: src/compiler/pipeline.h

Issue 727323002: [turbofan] move register allocation phases to pipeline (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
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | src/compiler/pipeline.cc » ('J')
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 629426f7c191c1283e2b07abaa48616de68e9454..5941251da959e8c7f4e363f5d83c18c094cf6d76 100644
--- a/src/compiler/pipeline.h
+++ b/src/compiler/pipeline.h
@@ -18,8 +18,10 @@ namespace compiler {
// Clients of this interface shouldn't depend on lots of compiler internals.
class Graph;
+class InstructionSequence;
class Linkage;
class PipelineData;
+class RegisterConfiguration;
class Schedule;
class Pipeline {
@@ -34,6 +36,10 @@ class Pipeline {
Handle<Code> GenerateCodeForMachineGraph(Linkage* linkage, Graph* graph,
Schedule* schedule = NULL);
+ static bool AllocateRegisters(const RegisterConfiguration* config,
+ InstructionSequence* sequence,
+ bool run_verifier);
+
static inline bool SupportedBackend() { return V8_TURBOFAN_BACKEND != 0; }
static inline bool SupportedTarget() { return V8_TURBOFAN_TARGET != 0; }
@@ -49,14 +55,15 @@ class Pipeline {
void Run();
template <typename Phase, typename Arg0>
void Run(Arg0 arg_0);
- template <typename Phase, typename Arg0, typename Arg1>
- void Run(Arg0 arg_0, Arg1 arg_1);
CompilationInfo* info() const { return info_; }
Isolate* isolate() { return info_->isolate(); }
+ void BeginPhaseKind(const char* phase_kind);
void RunPrintAndVerify(const char* phase, bool untyped = false);
void GenerateCode(Linkage* linkage);
+ void AllocateRegisters(const RegisterConfiguration* config,
+ bool run_verifier);
};
} // namespace compiler
« no previous file with comments | « no previous file | src/compiler/pipeline.cc » ('j') | src/compiler/pipeline.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698