| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/compiler/common-operator.h" | 5 #include "src/compiler/common-operator.h" |
| 6 #include "src/compiler/control-reducer.h" | 6 #include "src/compiler/control-reducer.h" |
| 7 #include "src/compiler/graph.h" | 7 #include "src/compiler/graph.h" |
| 8 #include "src/compiler/js-graph.h" | 8 #include "src/compiler/js-graph.h" |
| 9 #include "src/compiler/node-marker.h" | 9 #include "src/compiler/node-marker.h" |
| 10 #include "src/compiler/node-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| (...skipping 545 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 | 556 |
| 557 void ControlReducer::TrimGraph(Zone* zone, JSGraph* jsgraph) { | 557 void ControlReducer::TrimGraph(Zone* zone, JSGraph* jsgraph) { |
| 558 ControlReducerImpl impl(zone, jsgraph, NULL); | 558 ControlReducerImpl impl(zone, jsgraph, NULL); |
| 559 impl.Trim(); | 559 impl.Trim(); |
| 560 } | 560 } |
| 561 | 561 |
| 562 | 562 |
| 563 Node* ControlReducer::ReducePhiForTesting(JSGraph* jsgraph, | 563 Node* ControlReducer::ReducePhiForTesting(JSGraph* jsgraph, |
| 564 CommonOperatorBuilder* common, | 564 CommonOperatorBuilder* common, |
| 565 Node* node) { | 565 Node* node) { |
| 566 Zone zone(jsgraph->graph()->zone()->isolate()); | 566 Zone zone; |
| 567 ControlReducerImpl impl(&zone, jsgraph, common); | 567 ControlReducerImpl impl(&zone, jsgraph, common); |
| 568 return impl.ReducePhi(node); | 568 return impl.ReducePhi(node); |
| 569 } | 569 } |
| 570 | 570 |
| 571 | 571 |
| 572 Node* ControlReducer::ReduceMergeForTesting(JSGraph* jsgraph, | 572 Node* ControlReducer::ReduceMergeForTesting(JSGraph* jsgraph, |
| 573 CommonOperatorBuilder* common, | 573 CommonOperatorBuilder* common, |
| 574 Node* node) { | 574 Node* node) { |
| 575 Zone zone(jsgraph->graph()->zone()->isolate()); | 575 Zone zone; |
| 576 ControlReducerImpl impl(&zone, jsgraph, common); | 576 ControlReducerImpl impl(&zone, jsgraph, common); |
| 577 return impl.ReduceMerge(node); | 577 return impl.ReduceMerge(node); |
| 578 } | 578 } |
| 579 | 579 |
| 580 | 580 |
| 581 Node* ControlReducer::ReduceBranchForTesting(JSGraph* jsgraph, | 581 Node* ControlReducer::ReduceBranchForTesting(JSGraph* jsgraph, |
| 582 CommonOperatorBuilder* common, | 582 CommonOperatorBuilder* common, |
| 583 Node* node) { | 583 Node* node) { |
| 584 Zone zone(jsgraph->graph()->zone()->isolate()); | 584 Zone zone; |
| 585 ControlReducerImpl impl(&zone, jsgraph, common); | 585 ControlReducerImpl impl(&zone, jsgraph, common); |
| 586 return impl.ReduceBranch(node); | 586 return impl.ReduceBranch(node); |
| 587 } | 587 } |
| 588 } | 588 } |
| 589 } | 589 } |
| 590 } // namespace v8::internal::compiler | 590 } // namespace v8::internal::compiler |
| OLD | NEW |