| 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 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 case IrOpcode::kImpossibleToFloat64: | 965 case IrOpcode::kImpossibleToFloat64: |
| 966 case IrOpcode::kImpossibleToTagged: | 966 case IrOpcode::kImpossibleToTagged: |
| 967 case IrOpcode::kImpossibleToBit: | 967 case IrOpcode::kImpossibleToBit: |
| 968 break; | 968 break; |
| 969 | 969 |
| 970 case IrOpcode::kCheckBounds: | 970 case IrOpcode::kCheckBounds: |
| 971 CheckValueInputIs(node, 0, Type::Any()); | 971 CheckValueInputIs(node, 0, Type::Any()); |
| 972 CheckValueInputIs(node, 1, Type::Unsigned31()); | 972 CheckValueInputIs(node, 1, Type::Unsigned31()); |
| 973 CheckUpperIs(node, Type::Unsigned31()); | 973 CheckUpperIs(node, Type::Unsigned31()); |
| 974 break; | 974 break; |
| 975 case IrOpcode::kCheckMaps: |
| 976 // (Any, Internal, ..., Internal) -> Any |
| 977 CheckValueInputIs(node, 0, Type::Any()); |
| 978 for (int i = 1; i < node->op()->ValueInputCount(); ++i) { |
| 979 CheckValueInputIs(node, i, Type::Internal()); |
| 980 } |
| 981 CheckNotTyped(node); |
| 982 break; |
| 975 case IrOpcode::kCheckNumber: | 983 case IrOpcode::kCheckNumber: |
| 976 CheckValueInputIs(node, 0, Type::Any()); | 984 CheckValueInputIs(node, 0, Type::Any()); |
| 977 CheckUpperIs(node, Type::Number()); | 985 CheckUpperIs(node, Type::Number()); |
| 978 break; | 986 break; |
| 979 case IrOpcode::kCheckString: | 987 case IrOpcode::kCheckString: |
| 980 CheckValueInputIs(node, 0, Type::Any()); | 988 CheckValueInputIs(node, 0, Type::Any()); |
| 981 CheckUpperIs(node, Type::String()); | 989 CheckUpperIs(node, Type::String()); |
| 982 break; | 990 break; |
| 983 case IrOpcode::kCheckIf: | 991 case IrOpcode::kCheckIf: |
| 984 CheckValueInputIs(node, 0, Type::Boolean()); | 992 CheckValueInputIs(node, 0, Type::Boolean()); |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1540 replacement->op()->EffectOutputCount() > 0); | 1548 replacement->op()->EffectOutputCount() > 0); |
| 1541 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1549 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1542 replacement->opcode() == IrOpcode::kFrameState); | 1550 replacement->opcode() == IrOpcode::kFrameState); |
| 1543 } | 1551 } |
| 1544 | 1552 |
| 1545 #endif // DEBUG | 1553 #endif // DEBUG |
| 1546 | 1554 |
| 1547 } // namespace compiler | 1555 } // namespace compiler |
| 1548 } // namespace internal | 1556 } // namespace internal |
| 1549 } // namespace v8 | 1557 } // namespace v8 |
| OLD | NEW |