| 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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 CheckNotTyped(node); | 271 CheckNotTyped(node); |
| 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 // Type is empty. | 282 // Type is empty. |
| 282 CheckNotTyped(node); | 283 CheckNotTyped(node); |
| 283 break; | 284 break; |
| 284 case IrOpcode::kDeoptimize: | 285 case IrOpcode::kDeoptimize: |
| 285 case IrOpcode::kReturn: | 286 case IrOpcode::kReturn: |
| 286 case IrOpcode::kThrow: | 287 case IrOpcode::kThrow: |
| 287 // Deoptimize, Return and Throw uses are End. | 288 // Deoptimize, Return and Throw uses are End. |
| 288 for (const Node* use : node->uses()) { | 289 for (const Node* use : node->uses()) { |
| 289 CHECK_EQ(IrOpcode::kEnd, use->opcode()); | 290 CHECK_EQ(IrOpcode::kEnd, use->opcode()); |
| 290 } | 291 } |
| (...skipping 1118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1409 replacement->op()->EffectOutputCount() > 0); | 1410 replacement->op()->EffectOutputCount() > 0); |
| 1410 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1411 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1411 replacement->opcode() == IrOpcode::kFrameState); | 1412 replacement->opcode() == IrOpcode::kFrameState); |
| 1412 } | 1413 } |
| 1413 | 1414 |
| 1414 #endif // DEBUG | 1415 #endif // DEBUG |
| 1415 | 1416 |
| 1416 } // namespace compiler | 1417 } // namespace compiler |
| 1417 } // namespace internal | 1418 } // namespace internal |
| 1418 } // namespace v8 | 1419 } // namespace v8 |
| OLD | NEW |