| 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-matchers.h" | 10 #include "src/compiler/node-matchers.h" |
| 10 #include "src/compiler/node-properties-inl.h" | 11 #include "src/compiler/node-properties-inl.h" |
| 11 #include "src/zone-containers.h" | 12 #include "src/zone-containers.h" |
| 12 | 13 |
| 13 namespace v8 { | 14 namespace v8 { |
| 14 namespace internal { | 15 namespace internal { |
| 15 namespace compiler { | 16 namespace compiler { |
| 16 | 17 |
| 17 enum VisitState { kUnvisited = 0, kOnStack = 1, kRevisit = 2, kVisited = 3 }; | 18 enum VisitState { kUnvisited = 0, kOnStack = 1, kRevisit = 2, kVisited = 3 }; |
| 18 enum Decision { kFalse, kUnknown, kTrue }; | 19 enum Decision { kFalse, kUnknown, kTrue }; |
| (...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 Node* ControlReducer::ReduceBranchForTesting(JSGraph* jsgraph, | 584 Node* ControlReducer::ReduceBranchForTesting(JSGraph* jsgraph, |
| 584 CommonOperatorBuilder* common, | 585 CommonOperatorBuilder* common, |
| 585 Node* node) { | 586 Node* node) { |
| 586 Zone zone(jsgraph->graph()->zone()->isolate()); | 587 Zone zone(jsgraph->graph()->zone()->isolate()); |
| 587 ControlReducerImpl impl(&zone, jsgraph, common); | 588 ControlReducerImpl impl(&zone, jsgraph, common); |
| 588 return impl.ReduceBranch(node); | 589 return impl.ReduceBranch(node); |
| 589 } | 590 } |
| 590 } | 591 } |
| 591 } | 592 } |
| 592 } // namespace v8::internal::compiler | 593 } // namespace v8::internal::compiler |
| OLD | NEW |