| 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 "test/cctest/compiler/simplified-graph-builder.h" | 5 #include "test/cctest/compiler/simplified-graph-builder.h" |
| 6 | 6 |
| 7 #include "src/compiler/operator-properties.h" | 7 #include "src/compiler/operator-properties.h" |
| 8 #include "src/compiler/operator-properties-inl.h" | 8 #include "src/compiler/operator-properties-inl.h" |
| 9 | 9 |
| 10 namespace v8 { | 10 namespace v8 { |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 if (has_effect) { | 69 if (has_effect) { |
| 70 *current_input++ = effect_; | 70 *current_input++ = effect_; |
| 71 } | 71 } |
| 72 if (has_control) { | 72 if (has_control) { |
| 73 *current_input++ = graph()->start(); | 73 *current_input++ = graph()->start(); |
| 74 } | 74 } |
| 75 result = graph()->NewNode(op, input_count_with_deps, buffer, incomplete); | 75 result = graph()->NewNode(op, input_count_with_deps, buffer, incomplete); |
| 76 if (has_effect) { | 76 if (has_effect) { |
| 77 effect_ = result; | 77 effect_ = result; |
| 78 } | 78 } |
| 79 if (OperatorProperties::HasControlOutput(result->op())) { | 79 // This graph builder does not support control flow. |
| 80 // This graph builder does not support control flow. | 80 CHECK_EQ(0, op->ControlOutputCount()); |
| 81 UNREACHABLE(); | |
| 82 } | |
| 83 } | 81 } |
| 84 | 82 |
| 85 return result; | 83 return result; |
| 86 } | 84 } |
| 87 | 85 |
| 88 } // namespace compiler | 86 } // namespace compiler |
| 89 } // namespace internal | 87 } // namespace internal |
| 90 } // namespace v8 | 88 } // namespace v8 |
| OLD | NEW |