| 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/verifier.h" | 5 #include "src/compiler/verifier.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <queue> | 9 #include <queue> |
| 10 #include <sstream> | 10 #include <sstream> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "src/bit-vector.h" | 13 #include "src/bit-vector.h" |
| 14 #include "src/compiler/all-nodes.h" | 14 #include "src/compiler/all-nodes.h" |
| 15 #include "src/compiler/common-operator.h" | 15 #include "src/compiler/common-operator.h" |
| 16 #include "src/compiler/graph.h" | 16 #include "src/compiler/graph.h" |
| 17 #include "src/compiler/node.h" | 17 #include "src/compiler/node.h" |
| 18 #include "src/compiler/node-properties.h" | 18 #include "src/compiler/node-properties.h" |
| 19 #include "src/compiler/opcodes.h" | 19 #include "src/compiler/opcodes.h" |
| 20 #include "src/compiler/operator.h" | 20 #include "src/compiler/operator.h" |
| 21 #include "src/compiler/operator-properties.h" | 21 #include "src/compiler/operator-properties.h" |
| 22 #include "src/compiler/schedule.h" | 22 #include "src/compiler/schedule.h" |
| 23 #include "src/compiler/simplified-operator.h" | 23 #include "src/compiler/simplified-operator.h" |
| 24 #include "src/ostreams.h" | 24 #include "src/ostreams.h" |
| 25 #include "src/types-inl.h" |
| 25 | 26 |
| 26 namespace v8 { | 27 namespace v8 { |
| 27 namespace internal { | 28 namespace internal { |
| 28 namespace compiler { | 29 namespace compiler { |
| 29 | 30 |
| 30 | 31 |
| 31 static bool IsDefUseChainLinkPresent(Node* def, Node* use) { | 32 static bool IsDefUseChainLinkPresent(Node* def, Node* use) { |
| 32 auto const uses = def->uses(); | 33 auto const uses = def->uses(); |
| 33 return std::find(uses.begin(), uses.end(), use) != uses.end(); | 34 return std::find(uses.begin(), uses.end(), use) != uses.end(); |
| 34 } | 35 } |
| (...skipping 1113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 // Check inputs for all nodes in the block. | 1149 // Check inputs for all nodes in the block. |
| 1149 for (size_t i = 0; i < block->NodeCount(); i++) { | 1150 for (size_t i = 0; i < block->NodeCount(); i++) { |
| 1150 Node* node = block->NodeAt(i); | 1151 Node* node = block->NodeAt(i); |
| 1151 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); | 1152 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); |
| 1152 } | 1153 } |
| 1153 } | 1154 } |
| 1154 } | 1155 } |
| 1155 } // namespace compiler | 1156 } // namespace compiler |
| 1156 } // namespace internal | 1157 } // namespace internal |
| 1157 } // namespace v8 | 1158 } // namespace v8 |
| OLD | NEW |