| OLD | NEW | 
|---|
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 #ifndef V8_COMPILER_DIAMOND_H_ | 5 #ifndef V8_COMPILER_DIAMOND_H_ | 
| 6 #define V8_COMPILER_DIAMOND_H_ | 6 #define V8_COMPILER_DIAMOND_H_ | 
| 7 | 7 | 
| 8 #include "src/v8.h" | 8 #include "src/v8.h" | 
| 9 | 9 | 
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" | 
| 11 #include "src/compiler/graph-inl.h" | 11 #include "src/compiler/graph.h" | 
| 12 #include "src/compiler/node.h" | 12 #include "src/compiler/node.h" | 
| 13 | 13 | 
| 14 namespace v8 { | 14 namespace v8 { | 
| 15 namespace internal { | 15 namespace internal { | 
| 16 namespace compiler { | 16 namespace compiler { | 
| 17 | 17 | 
| 18 // A helper to make it easier to build diamond-shaped control patterns. | 18 // A helper to make it easier to build diamond-shaped control patterns. | 
| 19 struct Diamond { | 19 struct Diamond { | 
| 20   Graph* graph; | 20   Graph* graph; | 
| 21   CommonOperatorBuilder* common; | 21   CommonOperatorBuilder* common; | 
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 76     node->ReplaceInput(1, fe); | 76     node->ReplaceInput(1, fe); | 
| 77     node->ReplaceInput(2, merge); | 77     node->ReplaceInput(2, merge); | 
| 78     node->TrimInputCount(3); | 78     node->TrimInputCount(3); | 
| 79   } | 79   } | 
| 80 }; | 80 }; | 
| 81 } | 81 } | 
| 82 } | 82 } | 
| 83 }  // namespace v8::internal::compiler | 83 }  // namespace v8::internal::compiler | 
| 84 | 84 | 
| 85 #endif  // V8_COMPILER_DIAMOND_H_ | 85 #endif  // V8_COMPILER_DIAMOND_H_ | 
| OLD | NEW | 
|---|