summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/select-lowering.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/select-lowering.h')
-rw-r--r--deps/v8/src/compiler/select-lowering.h18
1 files changed, 8 insertions, 10 deletions
diff --git a/deps/v8/src/compiler/select-lowering.h b/deps/v8/src/compiler/select-lowering.h
index d8c12d4d54..53890a7898 100644
--- a/deps/v8/src/compiler/select-lowering.h
+++ b/deps/v8/src/compiler/select-lowering.h
@@ -5,33 +5,31 @@
#ifndef V8_COMPILER_SELECT_LOWERING_H_
#define V8_COMPILER_SELECT_LOWERING_H_
+#include "src/compiler/graph-assembler.h"
#include "src/compiler/graph-reducer.h"
namespace v8 {
namespace internal {
namespace compiler {
-// Forward declarations.
-class CommonOperatorBuilder;
-class Graph;
-
-
// Lowers Select nodes to diamonds.
class SelectLowering final : public Reducer {
public:
- SelectLowering(Graph* graph, CommonOperatorBuilder* common);
+ SelectLowering(JSGraph* jsgraph, Zone* zone);
~SelectLowering() override;
const char* reducer_name() const override { return "SelectLowering"; }
Reduction Reduce(Node* node) override;
+ Node* LowerSelect(Node* node);
+
private:
- CommonOperatorBuilder* common() const { return common_; }
- Graph* graph() const { return graph_; }
+ GraphAssembler* gasm() { return &graph_assembler_; }
+ Node* start() { return start_; }
- CommonOperatorBuilder* common_;
- Graph* graph_;
+ GraphAssembler graph_assembler_;
+ Node* start_;
};
} // namespace compiler