OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |