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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 case IrOpcode::kNumberToUint32: | 755 case IrOpcode::kNumberToUint32: |
756 // Number -> Unsigned32 | 756 // Number -> Unsigned32 |
757 CheckValueInputIs(node, 0, Type::NumberOrUndefined()); | 757 CheckValueInputIs(node, 0, Type::NumberOrUndefined()); |
758 CheckUpperIs(node, Type::Unsigned32()); | 758 CheckUpperIs(node, Type::Unsigned32()); |
759 break; | 759 break; |
760 case IrOpcode::kNumberIsHoleNaN: | 760 case IrOpcode::kNumberIsHoleNaN: |
761 // Number -> Boolean | 761 // Number -> Boolean |
762 CheckValueInputIs(node, 0, Type::Number()); | 762 CheckValueInputIs(node, 0, Type::Number()); |
763 CheckUpperIs(node, Type::Boolean()); | 763 CheckUpperIs(node, Type::Boolean()); |
764 break; | 764 break; |
| 765 case IrOpcode::kPlainPrimitiveToNumber: |
| 766 // Type is Number. |
| 767 CheckUpperIs(node, Type::Number()); |
| 768 break; |
| 769 case IrOpcode::kPlainPrimitiveToWord32: |
| 770 CheckUpperIs(node, Type::Number()); |
| 771 break; |
| 772 case IrOpcode::kPlainPrimitiveToFloat64: |
| 773 CheckUpperIs(node, Type::Number()); |
| 774 break; |
765 case IrOpcode::kStringEqual: | 775 case IrOpcode::kStringEqual: |
766 case IrOpcode::kStringLessThan: | 776 case IrOpcode::kStringLessThan: |
767 case IrOpcode::kStringLessThanOrEqual: | 777 case IrOpcode::kStringLessThanOrEqual: |
768 // (String, String) -> Boolean | 778 // (String, String) -> Boolean |
769 CheckValueInputIs(node, 0, Type::String()); | 779 CheckValueInputIs(node, 0, Type::String()); |
770 CheckValueInputIs(node, 1, Type::String()); | 780 CheckValueInputIs(node, 1, Type::String()); |
771 CheckUpperIs(node, Type::Boolean()); | 781 CheckUpperIs(node, Type::Boolean()); |
772 break; | 782 break; |
773 case IrOpcode::kStringFromCharCode: | 783 case IrOpcode::kStringFromCharCode: |
774 // Number -> String | 784 // Number -> String |
(...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1414 replacement->op()->EffectOutputCount() > 0); | 1424 replacement->op()->EffectOutputCount() > 0); |
1415 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1425 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1416 replacement->opcode() == IrOpcode::kFrameState); | 1426 replacement->opcode() == IrOpcode::kFrameState); |
1417 } | 1427 } |
1418 | 1428 |
1419 #endif // DEBUG | 1429 #endif // DEBUG |
1420 | 1430 |
1421 } // namespace compiler | 1431 } // namespace compiler |
1422 } // namespace internal | 1432 } // namespace internal |
1423 } // namespace v8 | 1433 } // namespace v8 |
OLD | NEW |