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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 // Number -> Boolean | 819 // Number -> Boolean |
820 CheckValueInputIs(node, 0, Type::Number()); | 820 CheckValueInputIs(node, 0, Type::Number()); |
821 CheckTypeIs(node, Type::Boolean()); | 821 CheckTypeIs(node, Type::Boolean()); |
822 break; | 822 break; |
823 case IrOpcode::kNumberToInt32: | 823 case IrOpcode::kNumberToInt32: |
824 // Number -> Signed32 | 824 // Number -> Signed32 |
825 CheckValueInputIs(node, 0, Type::Number()); | 825 CheckValueInputIs(node, 0, Type::Number()); |
826 CheckTypeIs(node, Type::Signed32()); | 826 CheckTypeIs(node, Type::Signed32()); |
827 break; | 827 break; |
828 case IrOpcode::kNumberToUint32: | 828 case IrOpcode::kNumberToUint32: |
| 829 case IrOpcode::kNumberToUint8Clamped: |
829 // Number -> Unsigned32 | 830 // Number -> Unsigned32 |
830 CheckValueInputIs(node, 0, Type::Number()); | 831 CheckValueInputIs(node, 0, Type::Number()); |
831 CheckTypeIs(node, Type::Unsigned32()); | 832 CheckTypeIs(node, Type::Unsigned32()); |
832 break; | 833 break; |
833 case IrOpcode::kPlainPrimitiveToNumber: | 834 case IrOpcode::kPlainPrimitiveToNumber: |
834 // PlainPrimitive -> Number | 835 // PlainPrimitive -> Number |
835 CheckValueInputIs(node, 0, Type::PlainPrimitive()); | 836 CheckValueInputIs(node, 0, Type::PlainPrimitive()); |
836 CheckTypeIs(node, Type::Number()); | 837 CheckTypeIs(node, Type::Number()); |
837 break; | 838 break; |
838 case IrOpcode::kPlainPrimitiveToWord32: | 839 case IrOpcode::kPlainPrimitiveToWord32: |
(...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1621 replacement->op()->EffectOutputCount() > 0); | 1622 replacement->op()->EffectOutputCount() > 0); |
1622 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1623 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1623 replacement->opcode() == IrOpcode::kFrameState); | 1624 replacement->opcode() == IrOpcode::kFrameState); |
1624 } | 1625 } |
1625 | 1626 |
1626 #endif // DEBUG | 1627 #endif // DEBUG |
1627 | 1628 |
1628 } // namespace compiler | 1629 } // namespace compiler |
1629 } // namespace internal | 1630 } // namespace internal |
1630 } // namespace v8 | 1631 } // namespace v8 |
OLD | NEW |