| 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" | |
| 9 | |
| 10 #include "src/compiler/common-operator.h" | 8 #include "src/compiler/common-operator.h" |
| 11 #include "src/compiler/graph.h" | 9 #include "src/compiler/graph.h" |
| 12 #include "src/compiler/node.h" | 10 #include "src/compiler/node.h" |
| 13 | 11 |
| 14 namespace v8 { | 12 namespace v8 { |
| 15 namespace internal { | 13 namespace internal { |
| 16 namespace compiler { | 14 namespace compiler { |
| 17 | 15 |
| 18 // A helper to make it easier to build diamond-shaped control patterns. | 16 // A helper to make it easier to build diamond-shaped control patterns. |
| 19 struct Diamond { | 17 struct Diamond { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 node->ReplaceInput(1, fe); | 74 node->ReplaceInput(1, fe); |
| 77 node->ReplaceInput(2, merge); | 75 node->ReplaceInput(2, merge); |
| 78 node->TrimInputCount(3); | 76 node->TrimInputCount(3); |
| 79 } | 77 } |
| 80 }; | 78 }; |
| 81 } | 79 } |
| 82 } | 80 } |
| 83 } // namespace v8::internal::compiler | 81 } // namespace v8::internal::compiler |
| 84 | 82 |
| 85 #endif // V8_COMPILER_DIAMOND_H_ | 83 #endif // V8_COMPILER_DIAMOND_H_ |
| OLD | NEW |