Simplify public pipeline interface.

R=sigurds@chromium.org

Review URL: https://codereview.chromium.org/471563002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@23106 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 3a3d6bd4
...@@ -73,6 +73,15 @@ class PhaseStats { ...@@ -73,6 +73,15 @@ class PhaseStats {
}; };
static inline bool VerifyGraphs() {
#ifdef DEBUG
return true;
#else
return FLAG_turbo_verify;
#endif
}
void Pipeline::VerifyAndPrintGraph(Graph* graph, const char* phase) { void Pipeline::VerifyAndPrintGraph(Graph* graph, const char* phase) {
if (FLAG_trace_turbo) { if (FLAG_trace_turbo) {
char buffer[256]; char buffer[256];
......
...@@ -17,7 +17,6 @@ namespace internal { ...@@ -17,7 +17,6 @@ namespace internal {
namespace compiler { namespace compiler {
// Clients of this interface shouldn't depend on lots of compiler internals. // Clients of this interface shouldn't depend on lots of compiler internals.
class CallDescriptor;
class Graph; class Graph;
class Schedule; class Schedule;
class SourcePositionTable; class SourcePositionTable;
...@@ -35,27 +34,19 @@ class Pipeline { ...@@ -35,27 +34,19 @@ class Pipeline {
Handle<Code> GenerateCodeForMachineGraph(Linkage* linkage, Graph* graph, Handle<Code> GenerateCodeForMachineGraph(Linkage* linkage, Graph* graph,
Schedule* schedule = NULL); Schedule* schedule = NULL);
CompilationInfo* info() const { return info_; }
Zone* zone() { return info_->zone(); }
Isolate* isolate() { return info_->isolate(); }
static inline bool SupportedBackend() { return V8_TURBOFAN_BACKEND != 0; } static inline bool SupportedBackend() { return V8_TURBOFAN_BACKEND != 0; }
static inline bool SupportedTarget() { return V8_TURBOFAN_TARGET != 0; } static inline bool SupportedTarget() { return V8_TURBOFAN_TARGET != 0; }
static inline bool VerifyGraphs() {
#ifdef DEBUG
return true;
#else
return FLAG_turbo_verify;
#endif
}
static void SetUp(); static void SetUp();
static void TearDown(); static void TearDown();
private: private:
CompilationInfo* info_; CompilationInfo* info_;
CompilationInfo* info() const { return info_; }
Isolate* isolate() { return info_->isolate(); }
Zone* zone() { return info_->zone(); }
Schedule* ComputeSchedule(Graph* graph); Schedule* ComputeSchedule(Graph* graph);
void VerifyAndPrintGraph(Graph* graph, const char* phase); void VerifyAndPrintGraph(Graph* graph, const char* phase);
Handle<Code> GenerateCode(Linkage* linkage, Graph* graph, Schedule* schedule, Handle<Code> GenerateCode(Linkage* linkage, Graph* graph, Schedule* schedule,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment