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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
267 NodeProperties::GetControlInput(node)->opcode()); | 267 NodeProperties::GetControlInput(node)->opcode()); |
268 // Type is empty. | 268 // Type is empty. |
269 CheckNotTyped(node); | 269 CheckNotTyped(node); |
270 break; | 270 break; |
271 case IrOpcode::kLoop: | 271 case IrOpcode::kLoop: |
272 case IrOpcode::kMerge: | 272 case IrOpcode::kMerge: |
273 CHECK_EQ(control_count, input_count); | 273 CHECK_EQ(control_count, input_count); |
274 // Type is empty. | 274 // Type is empty. |
275 CheckNotTyped(node); | 275 CheckNotTyped(node); |
276 break; | 276 break; |
| 277 case IrOpcode::kDeoptimizeIf: |
| 278 case IrOpcode::kDeoptimizeUnless: |
| 279 // Type is empty. |
| 280 CheckNotTyped(node); |
| 281 break; |
277 case IrOpcode::kDeoptimize: | 282 case IrOpcode::kDeoptimize: |
278 case IrOpcode::kReturn: | 283 case IrOpcode::kReturn: |
279 case IrOpcode::kThrow: | 284 case IrOpcode::kThrow: |
280 // Deoptimize, Return and Throw uses are End. | 285 // Deoptimize, Return and Throw uses are End. |
281 for (auto use : node->uses()) { | 286 for (auto use : node->uses()) { |
282 CHECK_EQ(IrOpcode::kEnd, use->opcode()); | 287 CHECK_EQ(IrOpcode::kEnd, use->opcode()); |
283 } | 288 } |
284 // Type is empty. | 289 // Type is empty. |
285 CheckNotTyped(node); | 290 CheckNotTyped(node); |
286 break; | 291 break; |
(...skipping 986 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1273 replacement->op()->EffectOutputCount() > 0); | 1278 replacement->op()->EffectOutputCount() > 0); |
1274 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1279 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1275 replacement->opcode() == IrOpcode::kFrameState); | 1280 replacement->opcode() == IrOpcode::kFrameState); |
1276 } | 1281 } |
1277 | 1282 |
1278 #endif // DEBUG | 1283 #endif // DEBUG |
1279 | 1284 |
1280 } // namespace compiler | 1285 } // namespace compiler |
1281 } // namespace internal | 1286 } // namespace internal |
1282 } // namespace v8 | 1287 } // namespace v8 |
OLD | NEW |