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> |
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
272 break; | 272 break; |
273 case IrOpcode::kLoop: | 273 case IrOpcode::kLoop: |
274 case IrOpcode::kMerge: | 274 case IrOpcode::kMerge: |
275 CHECK_EQ(control_count, input_count); | 275 CHECK_EQ(control_count, input_count); |
276 // Type is empty. | 276 // Type is empty. |
277 CheckNotTyped(node); | 277 CheckNotTyped(node); |
278 break; | 278 break; |
279 case IrOpcode::kDeoptimizeIf: | 279 case IrOpcode::kDeoptimizeIf: |
280 case IrOpcode::kDeoptimizeUnless: | 280 case IrOpcode::kDeoptimizeUnless: |
281 case IrOpcode::kCheckIf: | 281 case IrOpcode::kCheckIf: |
282 case IrOpcode::kCheckUnless: | |
283 // Type is empty. | 282 // Type is empty. |
284 CheckNotTyped(node); | 283 CheckNotTyped(node); |
285 break; | 284 break; |
286 case IrOpcode::kDeoptimize: | 285 case IrOpcode::kDeoptimize: |
287 case IrOpcode::kReturn: | 286 case IrOpcode::kReturn: |
288 case IrOpcode::kThrow: | 287 case IrOpcode::kThrow: |
289 // Deoptimize, Return and Throw uses are End. | 288 // Deoptimize, Return and Throw uses are End. |
290 for (const Node* use : node->uses()) { | 289 for (const Node* use : node->uses()) { |
291 CHECK_EQ(IrOpcode::kEnd, use->opcode()); | 290 CHECK_EQ(IrOpcode::kEnd, use->opcode()); |
292 } | 291 } |
(...skipping 1184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1477 replacement->op()->EffectOutputCount() > 0); | 1476 replacement->op()->EffectOutputCount() > 0); |
1478 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1477 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1479 replacement->opcode() == IrOpcode::kFrameState); | 1478 replacement->opcode() == IrOpcode::kFrameState); |
1480 } | 1479 } |
1481 | 1480 |
1482 #endif // DEBUG | 1481 #endif // DEBUG |
1483 | 1482 |
1484 } // namespace compiler | 1483 } // namespace compiler |
1485 } // namespace internal | 1484 } // namespace internal |
1486 } // namespace v8 | 1485 } // namespace v8 |
OLD | NEW |