Index: src/compiler/lowering-builder.h |
diff --git a/src/compiler/lowering-builder.h b/src/compiler/lowering-builder.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..aeaaaacfd97efcf4cae147b2b66d20cfe0d9b703 |
--- /dev/null |
+++ b/src/compiler/lowering-builder.h |
@@ -0,0 +1,38 @@ |
+// Copyright 2014 the V8 project authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef V8_COMPILER_LOWERING_BUILDER_H_ |
+#define V8_COMPILER_LOWERING_BUILDER_H_ |
+ |
+#include "src/v8.h" |
+ |
+#include "src/compiler/graph.h" |
+ |
+ |
+namespace v8 { |
+namespace internal { |
+namespace compiler { |
+ |
+// TODO(dcarney): rename this class. |
+class LoweringBuilder { |
+ public: |
+ explicit LoweringBuilder(Graph* graph, SourcePositionTable* source_positions); |
+ virtual ~LoweringBuilder() {} |
+ |
+ void LowerAllNodes(); |
+ virtual void Lower(Node* node) = 0; // Exposed for testing. |
+ |
+ Graph* graph() const { return graph_; } |
+ |
+ private: |
+ class NodeVisitor; |
+ Graph* graph_; |
+ SourcePositionTable* source_positions_; |
+}; |
+ |
+} // namespace compiler |
+} // namespace internal |
+} // namespace v8 |
+ |
+#endif // V8_COMPILER_LOWERING_BUILDER_H_ |