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