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

Side by Side Diff: src/compiler/pipeline.h

Issue 662513005: [turbofan] delete graph and schedule before register allocation. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_PIPELINE_H_ 5 #ifndef V8_COMPILER_PIPELINE_H_
6 #define V8_COMPILER_PIPELINE_H_ 6 #define V8_COMPILER_PIPELINE_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/compiler.h" 10 #include "src/compiler.h"
11 11
12 // Note: TODO(turbofan) implies a performance improvement opportunity, 12 // Note: TODO(turbofan) implies a performance improvement opportunity,
13 // and TODO(name) implies an incomplete implementation 13 // and TODO(name) implies an incomplete implementation
14 14
15 namespace v8 { 15 namespace v8 {
16 namespace internal { 16 namespace internal {
17 namespace compiler { 17 namespace compiler {
18 18
19 // Clients of this interface shouldn't depend on lots of compiler internals. 19 // Clients of this interface shouldn't depend on lots of compiler internals.
20 class Graph; 20 class Graph;
21 class InstructionSequence;
22 class Linkage; 21 class Linkage;
23 class PipelineStatistics; 22 class PipelineData;
24 class RegisterAllocator;
25 class Schedule; 23 class Schedule;
26 class SourcePositionTable;
27 class ZonePool;
28 24
29 class Pipeline { 25 class Pipeline {
30 public: 26 public:
31 explicit Pipeline(CompilationInfo* info) : info_(info) {} 27 explicit Pipeline(CompilationInfo* info) : info_(info) {}
32 28
33 // Run the entire pipeline and generate a handle to a code object. 29 // Run the entire pipeline and generate a handle to a code object.
34 Handle<Code> GenerateCode(); 30 Handle<Code> GenerateCode();
35 31
36 // Run the pipeline on a machine graph and generate code. If {schedule} 32 // Run the pipeline on a machine graph and generate code. If {schedule}
37 // is {NULL}, then compute a new schedule for code generation. 33 // is {NULL}, then compute a new schedule for code generation.
38 Handle<Code> GenerateCodeForMachineGraph(Linkage* linkage, Graph* graph, 34 Handle<Code> GenerateCodeForMachineGraph(Linkage* linkage, Graph* graph,
39 Schedule* schedule = NULL); 35 Schedule* schedule = NULL);
40 36
41 static inline bool SupportedBackend() { return V8_TURBOFAN_BACKEND != 0; } 37 static inline bool SupportedBackend() { return V8_TURBOFAN_BACKEND != 0; }
42 static inline bool SupportedTarget() { return V8_TURBOFAN_TARGET != 0; } 38 static inline bool SupportedTarget() { return V8_TURBOFAN_TARGET != 0; }
43 39
44 static void SetUp(); 40 static void SetUp();
45 static void TearDown(); 41 static void TearDown();
46 42
47 private: 43 private:
48 CompilationInfo* info_; 44 CompilationInfo* info_;
49 45
50 CompilationInfo* info() const { return info_; } 46 CompilationInfo* info() const { return info_; }
51 Isolate* isolate() { return info_->isolate(); } 47 Isolate* isolate() { return info_->isolate(); }
52 Zone* zone() { return info_->zone(); }
53 48
54 Schedule* ComputeSchedule(ZonePool* zone_pool, Graph* graph); 49 void ComputeSchedule(PipelineData* data);
55 void VerifyAndPrintGraph(Graph* graph, const char* phase, 50 void VerifyAndPrintGraph(Graph* graph, const char* phase,
56 bool untyped = false); 51 bool untyped = false);
57 Handle<Code> GenerateCode(PipelineStatistics* pipeline_statistics, 52 Handle<Code> GenerateCode(Linkage* linkage, PipelineData* data);
58 ZonePool* zone_pool, Linkage* linkage, Graph* graph,
59 Schedule* schedule,
60 SourcePositionTable* source_positions);
61 }; 53 };
62 } 54 }
63 } 55 }
64 } // namespace v8::internal::compiler 56 } // namespace v8::internal::compiler
65 57
66 #endif // V8_COMPILER_PIPELINE_H_ 58 #endif // V8_COMPILER_PIPELINE_H_
OLDNEW
« no previous file with comments | « src/compiler/machine-operator.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698