| 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 896 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 // Number -> Signed32 | 907 // Number -> Signed32 |
| 908 CheckValueInputIs(node, 0, Type::Number()); | 908 CheckValueInputIs(node, 0, Type::Number()); |
| 909 CheckTypeIs(node, Type::Signed32()); | 909 CheckTypeIs(node, Type::Signed32()); |
| 910 break; | 910 break; |
| 911 case IrOpcode::kNumberToUint32: | 911 case IrOpcode::kNumberToUint32: |
| 912 case IrOpcode::kNumberToUint8Clamped: | 912 case IrOpcode::kNumberToUint8Clamped: |
| 913 // Number -> Unsigned32 | 913 // Number -> Unsigned32 |
| 914 CheckValueInputIs(node, 0, Type::Number()); | 914 CheckValueInputIs(node, 0, Type::Number()); |
| 915 CheckTypeIs(node, Type::Unsigned32()); | 915 CheckTypeIs(node, Type::Unsigned32()); |
| 916 break; | 916 break; |
| 917 case IrOpcode::kSpeculativeToNumber: |
| 918 // Any -> Number |
| 919 CheckValueInputIs(node, 0, Type::Any()); |
| 920 CheckTypeIs(node, Type::Number()); |
| 921 break; |
| 917 case IrOpcode::kPlainPrimitiveToNumber: | 922 case IrOpcode::kPlainPrimitiveToNumber: |
| 918 // PlainPrimitive -> Number | 923 // PlainPrimitive -> Number |
| 919 CheckValueInputIs(node, 0, Type::PlainPrimitive()); | 924 CheckValueInputIs(node, 0, Type::PlainPrimitive()); |
| 920 CheckTypeIs(node, Type::Number()); | 925 CheckTypeIs(node, Type::Number()); |
| 921 break; | 926 break; |
| 922 case IrOpcode::kPlainPrimitiveToWord32: | 927 case IrOpcode::kPlainPrimitiveToWord32: |
| 923 // PlainPrimitive -> Integral32 | 928 // PlainPrimitive -> Integral32 |
| 924 CheckValueInputIs(node, 0, Type::PlainPrimitive()); | 929 CheckValueInputIs(node, 0, Type::PlainPrimitive()); |
| 925 CheckTypeIs(node, Type::Integral32()); | 930 CheckTypeIs(node, Type::Integral32()); |
| 926 break; | 931 break; |
| (...skipping 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1750 replacement->op()->EffectOutputCount() > 0); | 1755 replacement->op()->EffectOutputCount() > 0); |
| 1751 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1756 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1752 replacement->opcode() == IrOpcode::kFrameState); | 1757 replacement->opcode() == IrOpcode::kFrameState); |
| 1753 } | 1758 } |
| 1754 | 1759 |
| 1755 #endif // DEBUG | 1760 #endif // DEBUG |
| 1756 | 1761 |
| 1757 } // namespace compiler | 1762 } // namespace compiler |
| 1758 } // namespace internal | 1763 } // namespace internal |
| 1759 } // namespace v8 | 1764 } // namespace v8 |
| OLD | NEW |