| Index: src/compiler/control-reducer.h
|
| diff --git a/src/compiler/control-reducer.h b/src/compiler/control-reducer.h
|
| index d69d966404979a0cfc62457850dfc890cfd178d2..e25bb8820291bd8d784c1d415953d71412d8aa31 100644
|
| --- a/src/compiler/control-reducer.h
|
| +++ b/src/compiler/control-reducer.h
|
| @@ -11,14 +11,26 @@ namespace compiler {
|
|
|
| class JSGraph;
|
| class CommonOperatorBuilder;
|
| +class Node;
|
|
|
| class ControlReducer {
|
| public:
|
| // Perform branch folding and dead code elimination on the graph.
|
| - static void ReduceGraph(JSGraph* graph, CommonOperatorBuilder* builder);
|
| + static void ReduceGraph(Zone* zone, JSGraph* graph,
|
| + CommonOperatorBuilder* builder);
|
|
|
| // Trim nodes in the graph that are not reachable from end.
|
| - static void TrimGraph(JSGraph* graph);
|
| + static void TrimGraph(Zone* zone, JSGraph* graph);
|
| +
|
| + // Testing interface.
|
| + static Node* ReducePhiForTesting(JSGraph* graph,
|
| + CommonOperatorBuilder* builder, Node* node);
|
| + static Node* ReduceBranchForTesting(JSGraph* graph,
|
| + CommonOperatorBuilder* builder,
|
| + Node* node);
|
| + static Node* ReduceMergeForTesting(JSGraph* graph,
|
| + CommonOperatorBuilder* builder,
|
| + Node* node);
|
| };
|
| }
|
| }
|
|
|