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

Side by Side Diff: src/crankshaft/hydrogen.h

Issue 1872483002: [compiler] Make OptimizedCompileJob agnostic from backend. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Prevent endless recompile. Created 4 years, 8 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/pipeline.cc ('k') | src/crankshaft/hydrogen.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_CRANKSHAFT_HYDROGEN_H_ 5 #ifndef V8_CRANKSHAFT_HYDROGEN_H_
6 #define V8_CRANKSHAFT_HYDROGEN_H_ 6 #define V8_CRANKSHAFT_HYDROGEN_H_
7 7
8 #include "src/accessors.h" 8 #include "src/accessors.h"
9 #include "src/allocation.h" 9 #include "src/allocation.h"
10 #include "src/ast/ast.h" 10 #include "src/ast/ast.h"
(...skipping 12 matching lines...) Expand all
23 class FunctionState; 23 class FunctionState;
24 class HEnvironment; 24 class HEnvironment;
25 class HGraph; 25 class HGraph;
26 class HLoopInformation; 26 class HLoopInformation;
27 class HOsrBuilder; 27 class HOsrBuilder;
28 class HTracer; 28 class HTracer;
29 class LAllocator; 29 class LAllocator;
30 class LChunk; 30 class LChunk;
31 class LiveRange; 31 class LiveRange;
32 32
33 class HCompilationJob final : public OptimizedCompileJob {
34 public:
35 explicit HCompilationJob(CompilationInfo* info)
36 : OptimizedCompileJob(info), graph_(nullptr), chunk_(nullptr) {}
37
38 protected:
39 virtual Status CreateGraphImpl();
40 virtual Status OptimizeGraphImpl();
41 virtual Status GenerateCodeImpl();
42
43 private:
44 HGraph* graph_;
45 LChunk* chunk_;
46 };
33 47
34 class HBasicBlock final : public ZoneObject { 48 class HBasicBlock final : public ZoneObject {
35 public: 49 public:
36 explicit HBasicBlock(HGraph* graph); 50 explicit HBasicBlock(HGraph* graph);
37 ~HBasicBlock() { } 51 ~HBasicBlock() { }
38 52
39 // Simple accessors. 53 // Simple accessors.
40 int block_id() const { return block_id_; } 54 int block_id() const { return block_id_; }
41 void set_block_id(int id) { block_id_ = id; } 55 void set_block_id(int id) { block_id_ = id; }
42 HGraph* graph() const { return graph_; } 56 HGraph* graph() const { return graph_; }
(...skipping 3045 matching lines...) Expand 10 before | Expand all | Expand 10 after
3088 } 3102 }
3089 3103
3090 private: 3104 private:
3091 HOptimizedGraphBuilder* builder_; 3105 HOptimizedGraphBuilder* builder_;
3092 }; 3106 };
3093 3107
3094 } // namespace internal 3108 } // namespace internal
3095 } // namespace v8 3109 } // namespace v8
3096 3110
3097 #endif // V8_CRANKSHAFT_HYDROGEN_H_ 3111 #endif // V8_CRANKSHAFT_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698