| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef V8_COMPILER_LOWERING_BUILDER_H_ | |
| 6 #define V8_COMPILER_LOWERING_BUILDER_H_ | |
| 7 | |
| 8 #include "src/v8.h" | |
| 9 | |
| 10 #include "src/compiler/graph.h" | |
| 11 | |
| 12 | |
| 13 namespace v8 { | |
| 14 namespace internal { | |
| 15 namespace compiler { | |
| 16 | |
| 17 // TODO(dcarney): rename this class. | |
| 18 class LoweringBuilder { | |
| 19 public: | |
| 20 explicit LoweringBuilder(Graph* graph, SourcePositionTable* source_positions); | |
| 21 virtual ~LoweringBuilder() {} | |
| 22 | |
| 23 void LowerAllNodes(); | |
| 24 virtual void Lower(Node* node) = 0; // Exposed for testing. | |
| 25 | |
| 26 Graph* graph() const { return graph_; } | |
| 27 | |
| 28 private: | |
| 29 class NodeVisitor; | |
| 30 Graph* graph_; | |
| 31 SourcePositionTable* source_positions_; | |
| 32 }; | |
| 33 | |
| 34 } // namespace compiler | |
| 35 } // namespace internal | |
| 36 } // namespace v8 | |
| 37 | |
| 38 #endif // V8_COMPILER_LOWERING_BUILDER_H_ | |
| OLD | NEW |