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