summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/lowering-builder.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/lowering-builder.h')
-rw-r--r--deps/v8/src/compiler/lowering-builder.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/deps/v8/src/compiler/lowering-builder.h b/deps/v8/src/compiler/lowering-builder.h
new file mode 100644
index 000000000..aeaaaacfd
--- /dev/null
+++ b/deps/v8/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_