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 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 case IrOpcode::kMerge: | 277 case IrOpcode::kMerge: |
278 CHECK_EQ(control_count, input_count); | 278 CHECK_EQ(control_count, input_count); |
279 // Type is empty. | 279 // Type is empty. |
280 CheckNotTyped(node); | 280 CheckNotTyped(node); |
281 break; | 281 break; |
282 case IrOpcode::kDeoptimizeIf: | 282 case IrOpcode::kDeoptimizeIf: |
283 case IrOpcode::kDeoptimizeUnless: | 283 case IrOpcode::kDeoptimizeUnless: |
284 // Type is empty. | 284 // Type is empty. |
285 CheckNotTyped(node); | 285 CheckNotTyped(node); |
286 break; | 286 break; |
| 287 case IrOpcode::kTrapIf: |
| 288 case IrOpcode::kTrapUnless: |
| 289 // Type is empty. |
| 290 CheckNotTyped(node); |
| 291 break; |
287 case IrOpcode::kDeoptimize: | 292 case IrOpcode::kDeoptimize: |
288 case IrOpcode::kReturn: | 293 case IrOpcode::kReturn: |
289 case IrOpcode::kThrow: | 294 case IrOpcode::kThrow: |
290 // Deoptimize, Return and Throw uses are End. | 295 // Deoptimize, Return and Throw uses are End. |
291 for (const Node* use : node->uses()) { | 296 for (const Node* use : node->uses()) { |
292 CHECK_EQ(IrOpcode::kEnd, use->opcode()); | 297 CHECK_EQ(IrOpcode::kEnd, use->opcode()); |
293 } | 298 } |
294 // Type is empty. | 299 // Type is empty. |
295 CheckNotTyped(node); | 300 CheckNotTyped(node); |
296 break; | 301 break; |
(...skipping 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1658 replacement->op()->EffectOutputCount() > 0); | 1663 replacement->op()->EffectOutputCount() > 0); |
1659 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1664 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1660 replacement->opcode() == IrOpcode::kFrameState); | 1665 replacement->opcode() == IrOpcode::kFrameState); |
1661 } | 1666 } |
1662 | 1667 |
1663 #endif // DEBUG | 1668 #endif // DEBUG |
1664 | 1669 |
1665 } // namespace compiler | 1670 } // namespace compiler |
1666 } // namespace internal | 1671 } // namespace internal |
1667 } // namespace v8 | 1672 } // namespace v8 |
OLD | NEW |