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

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

Issue 904693002: [turbofan] Remove global InstructionOperand caches. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « src/compiler/instruction-selector-impl.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 // Clients of this interface shouldn't depend on lots of compiler internals.
11 // Do not include anything from src/compiler here!
10 #include "src/compiler.h" 12 #include "src/compiler.h"
11 13
12 namespace v8 { 14 namespace v8 {
13 namespace internal { 15 namespace internal {
14 namespace compiler { 16 namespace compiler {
15 17
16 // Clients of this interface shouldn't depend on lots of compiler internals.
17 class CallDescriptor; 18 class CallDescriptor;
18 class Graph; 19 class Graph;
19 class InstructionSequence; 20 class InstructionSequence;
20 class Linkage; 21 class Linkage;
21 class PipelineData; 22 class PipelineData;
22 class RegisterConfiguration; 23 class RegisterConfiguration;
23 class Schedule; 24 class Schedule;
24 25
25 class Pipeline { 26 class Pipeline {
26 public: 27 public:
(...skipping 16 matching lines...) Expand all
43 Schedule* schedule = nullptr); 44 Schedule* schedule = nullptr);
44 45
45 // Run just the register allocator phases. 46 // Run just the register allocator phases.
46 static bool AllocateRegistersForTesting(const RegisterConfiguration* config, 47 static bool AllocateRegistersForTesting(const RegisterConfiguration* config,
47 InstructionSequence* sequence, 48 InstructionSequence* sequence,
48 bool run_verifier); 49 bool run_verifier);
49 50
50 static inline bool SupportedBackend() { return V8_TURBOFAN_BACKEND != 0; } 51 static inline bool SupportedBackend() { return V8_TURBOFAN_BACKEND != 0; }
51 static inline bool SupportedTarget() { return V8_TURBOFAN_TARGET != 0; } 52 static inline bool SupportedTarget() { return V8_TURBOFAN_TARGET != 0; }
52 53
53 static void SetUp();
54 static void TearDown();
55
56 private: 54 private:
57 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info, 55 static Handle<Code> GenerateCodeForTesting(CompilationInfo* info,
58 CallDescriptor* call_descriptor, 56 CallDescriptor* call_descriptor,
59 Graph* graph, Schedule* schedule); 57 Graph* graph, Schedule* schedule);
60 58
61 CompilationInfo* info_; 59 CompilationInfo* info_;
62 PipelineData* data_; 60 PipelineData* data_;
63 61
64 // Helpers for executing pipeline phases. 62 // Helpers for executing pipeline phases.
65 template <typename Phase> 63 template <typename Phase>
66 void Run(); 64 void Run();
67 template <typename Phase, typename Arg0> 65 template <typename Phase, typename Arg0>
68 void Run(Arg0 arg_0); 66 void Run(Arg0 arg_0);
69 67
70 CompilationInfo* info() const { return info_; } 68 CompilationInfo* info() const { return info_; }
71 Isolate* isolate() { return info_->isolate(); } 69 Isolate* isolate() { return info_->isolate(); }
72 70
73 void BeginPhaseKind(const char* phase_kind); 71 void BeginPhaseKind(const char* phase_kind);
74 void RunPrintAndVerify(const char* phase, bool untyped = false); 72 void RunPrintAndVerify(const char* phase, bool untyped = false);
75 void GenerateCode(Linkage* linkage); 73 void GenerateCode(Linkage* linkage);
76 void AllocateRegisters(const RegisterConfiguration* config, 74 void AllocateRegisters(const RegisterConfiguration* config,
77 bool run_verifier); 75 bool run_verifier);
78 }; 76 };
79 77
80 } // namespace compiler 78 } // namespace compiler
81 } // namespace internal 79 } // namespace internal
82 } // namespace v8 80 } // namespace v8
83 81
84 #endif // V8_COMPILER_PIPELINE_H_ 82 #endif // V8_COMPILER_PIPELINE_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction-selector-impl.h ('k') | src/compiler/pipeline.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698