| 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/change-lowering.h" | 5 #include "src/compiler/change-lowering.h" |
| 6 | 6 |
| 7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
| 8 #include "src/compiler/diamond.h" | 8 #include "src/compiler/diamond.h" |
| 9 #include "src/compiler/js-graph.h" | 9 #include "src/compiler/js-graph.h" |
| 10 #include "src/compiler/linkage.h" | 10 #include "src/compiler/linkage.h" |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 ChangeSmiToInt32(value))); | 195 ChangeSmiToInt32(value))); |
| 196 } | 196 } |
| 197 | 197 |
| 198 | 198 |
| 199 namespace { | 199 namespace { |
| 200 | 200 |
| 201 bool CanCover(Node* value, IrOpcode::Value opcode) { | 201 bool CanCover(Node* value, IrOpcode::Value opcode) { |
| 202 if (value->opcode() != opcode) return false; | 202 if (value->opcode() != opcode) return false; |
| 203 bool first = true; | 203 bool first = true; |
| 204 for (Edge const edge : value->use_edges()) { | 204 for (Edge const edge : value->use_edges()) { |
| 205 if (NodeProperties::IsControlEdge(edge)) continue; |
| 205 if (NodeProperties::IsEffectEdge(edge)) continue; | 206 if (NodeProperties::IsEffectEdge(edge)) continue; |
| 206 DCHECK(NodeProperties::IsValueEdge(edge)); | 207 DCHECK(NodeProperties::IsValueEdge(edge)); |
| 207 if (!first) return false; | 208 if (!first) return false; |
| 208 first = false; | 209 first = false; |
| 209 } | 210 } |
| 210 return true; | 211 return true; |
| 211 } | 212 } |
| 212 | 213 |
| 213 } // namespace | 214 } // namespace |
| 214 | 215 |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 } | 282 } |
| 282 | 283 |
| 283 | 284 |
| 284 MachineOperatorBuilder* ChangeLowering::machine() const { | 285 MachineOperatorBuilder* ChangeLowering::machine() const { |
| 285 return jsgraph()->machine(); | 286 return jsgraph()->machine(); |
| 286 } | 287 } |
| 287 | 288 |
| 288 } // namespace compiler | 289 } // namespace compiler |
| 289 } // namespace internal | 290 } // namespace internal |
| 290 } // namespace v8 | 291 } // namespace v8 |
| OLD | NEW |