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 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
650 | 650 |
651 case IrOpcode::kJSStackCheck: | 651 case IrOpcode::kJSStackCheck: |
652 // Type is empty. | 652 // Type is empty. |
653 CheckNotTyped(node); | 653 CheckNotTyped(node); |
654 break; | 654 break; |
655 | 655 |
656 case IrOpcode::kDebugBreak: | 656 case IrOpcode::kDebugBreak: |
657 CheckNotTyped(node); | 657 CheckNotTyped(node); |
658 break; | 658 break; |
659 | 659 |
| 660 case IrOpcode::kComment: |
| 661 CheckNotTyped(node); |
| 662 break; |
| 663 |
660 // Simplified operators | 664 // Simplified operators |
661 // ------------------------------- | 665 // ------------------------------- |
662 case IrOpcode::kBooleanNot: | 666 case IrOpcode::kBooleanNot: |
663 // Boolean -> Boolean | 667 // Boolean -> Boolean |
664 CheckValueInputIs(node, 0, Type::Boolean()); | 668 CheckValueInputIs(node, 0, Type::Boolean()); |
665 CheckUpperIs(node, Type::Boolean()); | 669 CheckUpperIs(node, Type::Boolean()); |
666 break; | 670 break; |
667 case IrOpcode::kBooleanToNumber: | 671 case IrOpcode::kBooleanToNumber: |
668 // Boolean -> Number | 672 // Boolean -> Number |
669 CheckValueInputIs(node, 0, Type::Boolean()); | 673 CheckValueInputIs(node, 0, Type::Boolean()); |
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1407 replacement->op()->EffectOutputCount() > 0); | 1411 replacement->op()->EffectOutputCount() > 0); |
1408 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1412 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1409 replacement->opcode() == IrOpcode::kFrameState); | 1413 replacement->opcode() == IrOpcode::kFrameState); |
1410 } | 1414 } |
1411 | 1415 |
1412 #endif // DEBUG | 1416 #endif // DEBUG |
1413 | 1417 |
1414 } // namespace compiler | 1418 } // namespace compiler |
1415 } // namespace internal | 1419 } // namespace internal |
1416 } // namespace v8 | 1420 } // namespace v8 |
OLD | NEW |