Index: src/compiler/control-flow-optimizer.cc |
diff --git a/src/compiler/control-flow-optimizer.cc b/src/compiler/control-flow-optimizer.cc |
index c2198046e340c7968870a453aa11472082c4f450..25e183e1f65b1d66ad4abd630bcec7e2fcbc6159 100644 |
--- a/src/compiler/control-flow-optimizer.cc |
+++ b/src/compiler/control-flow-optimizer.cc |
@@ -4,7 +4,8 @@ |
#include "src/compiler/control-flow-optimizer.h" |
-#include "src/compiler/js-graph.h" |
+#include "src/compiler/common-operator.h" |
+#include "src/compiler/graph.h" |
#include "src/compiler/node-matchers.h" |
#include "src/compiler/node-properties.h" |
@@ -12,10 +13,15 @@ namespace v8 { |
namespace internal { |
namespace compiler { |
-ControlFlowOptimizer::ControlFlowOptimizer(JSGraph* jsgraph, Zone* zone) |
- : jsgraph_(jsgraph), |
+ControlFlowOptimizer::ControlFlowOptimizer(Graph* graph, |
+ CommonOperatorBuilder* common, |
+ MachineOperatorBuilder* machine, |
+ Zone* zone) |
+ : graph_(graph), |
+ common_(common), |
+ machine_(machine), |
queue_(zone), |
- queued_(jsgraph->graph(), 2), |
+ queued_(graph, 2), |
zone_(zone) {} |
@@ -267,19 +273,6 @@ bool ControlFlowOptimizer::TryBuildSwitch(Node* node) { |
return true; |
} |
- |
-CommonOperatorBuilder* ControlFlowOptimizer::common() const { |
- return jsgraph()->common(); |
-} |
- |
- |
-Graph* ControlFlowOptimizer::graph() const { return jsgraph()->graph(); } |
- |
- |
-MachineOperatorBuilder* ControlFlowOptimizer::machine() const { |
- return jsgraph()->machine(); |
-} |
- |
} // namespace compiler |
} // namespace internal |
} // namespace v8 |