Index: src/compiler/control-flow-optimizer.h |
diff --git a/src/compiler/control-flow-optimizer.h b/src/compiler/control-flow-optimizer.h |
index 82f672a2a005298fdc2adb352e219b147abc264b..f72fa58ad78f637df7052a18677795dbad81f577 100644 |
--- a/src/compiler/control-flow-optimizer.h |
+++ b/src/compiler/control-flow-optimizer.h |
@@ -15,14 +15,14 @@ namespace compiler { |
// Forward declarations. |
class CommonOperatorBuilder; |
class Graph; |
-class JSGraph; |
class MachineOperatorBuilder; |
class Node; |
class ControlFlowOptimizer final { |
public: |
- ControlFlowOptimizer(JSGraph* jsgraph, Zone* zone); |
+ ControlFlowOptimizer(Graph* graph, CommonOperatorBuilder* common, |
+ MachineOperatorBuilder* machine, Zone* zone); |
void Optimize(); |
@@ -34,13 +34,14 @@ class ControlFlowOptimizer final { |
bool TryBuildSwitch(Node* node); |
bool TryCloneBranch(Node* node); |
- CommonOperatorBuilder* common() const; |
- Graph* graph() const; |
- JSGraph* jsgraph() const { return jsgraph_; } |
- MachineOperatorBuilder* machine() const; |
+ Graph* graph() const { return graph_; } |
+ CommonOperatorBuilder* common() const { return common_; } |
+ MachineOperatorBuilder* machine() const { return machine_; } |
Zone* zone() const { return zone_; } |
- JSGraph* const jsgraph_; |
+ Graph* const graph_; |
+ CommonOperatorBuilder* const common_; |
+ MachineOperatorBuilder* const machine_; |
ZoneQueue<Node*> queue_; |
NodeMarker<bool> queued_; |
Zone* const zone_; |