| 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-reducer.h" | 5 #include "src/compiler/common-operator-reducer.h" |
| 6 | 6 |
| 7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
| 8 #include "src/compiler/node.h" |
| 8 | 9 |
| 9 namespace v8 { | 10 namespace v8 { |
| 10 namespace internal { | 11 namespace internal { |
| 11 namespace compiler { | 12 namespace compiler { |
| 12 | 13 |
| 13 Reduction CommonOperatorReducer::Reduce(Node* node) { | 14 Reduction CommonOperatorReducer::Reduce(Node* node) { |
| 14 switch (node->opcode()) { | 15 switch (node->opcode()) { |
| 15 case IrOpcode::kEffectPhi: | 16 case IrOpcode::kEffectPhi: |
| 16 case IrOpcode::kPhi: { | 17 case IrOpcode::kPhi: { |
| 17 int const input_count = node->InputCount(); | 18 int const input_count = node->InputCount(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 32 } | 33 } |
| 33 default: | 34 default: |
| 34 break; | 35 break; |
| 35 } | 36 } |
| 36 return NoChange(); | 37 return NoChange(); |
| 37 } | 38 } |
| 38 | 39 |
| 39 } // namespace compiler | 40 } // namespace compiler |
| 40 } // namespace internal | 41 } // namespace internal |
| 41 } // namespace v8 | 42 } // namespace v8 |
| OLD | NEW |