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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 // CheckValueInputIs(node, 0, from)); | 940 // CheckValueInputIs(node, 0, from)); |
941 // CheckUpperIs(node, to)); | 941 // CheckUpperIs(node, to)); |
942 break; | 942 break; |
943 } | 943 } |
944 | 944 |
945 case IrOpcode::kCheckBounds: | 945 case IrOpcode::kCheckBounds: |
946 CheckValueInputIs(node, 0, Type::Any()); | 946 CheckValueInputIs(node, 0, Type::Any()); |
947 CheckValueInputIs(node, 1, Type::Unsigned31()); | 947 CheckValueInputIs(node, 1, Type::Unsigned31()); |
948 CheckUpperIs(node, Type::Unsigned31()); | 948 CheckUpperIs(node, Type::Unsigned31()); |
949 break; | 949 break; |
| 950 case IrOpcode::kCheckNumber: |
| 951 CheckValueInputIs(node, 0, Type::Any()); |
| 952 CheckUpperIs(node, Type::Number()); |
| 953 break; |
950 case IrOpcode::kCheckTaggedSigned: | 954 case IrOpcode::kCheckTaggedSigned: |
951 CheckValueInputIs(node, 0, Type::Any()); | 955 CheckValueInputIs(node, 0, Type::Any()); |
952 CheckUpperIs(node, Type::TaggedSigned()); | 956 CheckUpperIs(node, Type::TaggedSigned()); |
953 break; | 957 break; |
954 case IrOpcode::kCheckTaggedPointer: | 958 case IrOpcode::kCheckTaggedPointer: |
955 CheckValueInputIs(node, 0, Type::Any()); | 959 CheckValueInputIs(node, 0, Type::Any()); |
956 CheckUpperIs(node, Type::TaggedPointer()); | 960 CheckUpperIs(node, Type::TaggedPointer()); |
957 break; | 961 break; |
958 | 962 |
959 case IrOpcode::kCheckedInt32Add: | 963 case IrOpcode::kCheckedInt32Add: |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1489 replacement->op()->EffectOutputCount() > 0); | 1493 replacement->op()->EffectOutputCount() > 0); |
1490 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1494 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1491 replacement->opcode() == IrOpcode::kFrameState); | 1495 replacement->opcode() == IrOpcode::kFrameState); |
1492 } | 1496 } |
1493 | 1497 |
1494 #endif // DEBUG | 1498 #endif // DEBUG |
1495 | 1499 |
1496 } // namespace compiler | 1500 } // namespace compiler |
1497 } // namespace internal | 1501 } // namespace internal |
1498 } // namespace v8 | 1502 } // namespace v8 |
OLD | NEW |