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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 | 958 |
959 case IrOpcode::kCheckBounds: | 959 case IrOpcode::kCheckBounds: |
960 CheckValueInputIs(node, 0, Type::Any()); | 960 CheckValueInputIs(node, 0, Type::Any()); |
961 CheckValueInputIs(node, 1, Type::Unsigned31()); | 961 CheckValueInputIs(node, 1, Type::Unsigned31()); |
962 CheckUpperIs(node, Type::Unsigned31()); | 962 CheckUpperIs(node, Type::Unsigned31()); |
963 break; | 963 break; |
964 case IrOpcode::kCheckNumber: | 964 case IrOpcode::kCheckNumber: |
965 CheckValueInputIs(node, 0, Type::Any()); | 965 CheckValueInputIs(node, 0, Type::Any()); |
966 CheckUpperIs(node, Type::Number()); | 966 CheckUpperIs(node, Type::Number()); |
967 break; | 967 break; |
| 968 case IrOpcode::kCheckString: |
| 969 CheckValueInputIs(node, 0, Type::Any()); |
| 970 CheckUpperIs(node, Type::String()); |
| 971 break; |
968 case IrOpcode::kCheckIf: | 972 case IrOpcode::kCheckIf: |
969 CheckValueInputIs(node, 0, Type::Boolean()); | 973 CheckValueInputIs(node, 0, Type::Boolean()); |
970 CheckNotTyped(node); | 974 CheckNotTyped(node); |
971 break; | 975 break; |
972 case IrOpcode::kCheckTaggedSigned: | 976 case IrOpcode::kCheckTaggedSigned: |
973 CheckValueInputIs(node, 0, Type::Any()); | 977 CheckValueInputIs(node, 0, Type::Any()); |
974 CheckUpperIs(node, Type::TaggedSigned()); | 978 CheckUpperIs(node, Type::TaggedSigned()); |
975 break; | 979 break; |
976 case IrOpcode::kCheckTaggedPointer: | 980 case IrOpcode::kCheckTaggedPointer: |
977 CheckValueInputIs(node, 0, Type::Any()); | 981 CheckValueInputIs(node, 0, Type::Any()); |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1524 replacement->op()->EffectOutputCount() > 0); | 1528 replacement->op()->EffectOutputCount() > 0); |
1525 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1529 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1526 replacement->opcode() == IrOpcode::kFrameState); | 1530 replacement->opcode() == IrOpcode::kFrameState); |
1527 } | 1531 } |
1528 | 1532 |
1529 #endif // DEBUG | 1533 #endif // DEBUG |
1530 | 1534 |
1531 } // namespace compiler | 1535 } // namespace compiler |
1532 } // namespace internal | 1536 } // namespace internal |
1533 } // namespace v8 | 1537 } // namespace v8 |
OLD | NEW |