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 938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
949 break; | 949 break; |
950 case IrOpcode::kMaybeGrowFastElements: | 950 case IrOpcode::kMaybeGrowFastElements: |
951 CheckValueInputIs(node, 0, Type::Any()); | 951 CheckValueInputIs(node, 0, Type::Any()); |
952 CheckValueInputIs(node, 1, Type::Internal()); | 952 CheckValueInputIs(node, 1, Type::Internal()); |
953 CheckValueInputIs(node, 2, Type::Unsigned31()); | 953 CheckValueInputIs(node, 2, Type::Unsigned31()); |
954 CheckValueInputIs(node, 3, Type::Unsigned31()); | 954 CheckValueInputIs(node, 3, Type::Unsigned31()); |
955 CheckTypeIs(node, Type::Internal()); | 955 CheckTypeIs(node, Type::Internal()); |
956 break; | 956 break; |
957 case IrOpcode::kTransitionElementsKind: | 957 case IrOpcode::kTransitionElementsKind: |
958 CheckValueInputIs(node, 0, Type::Any()); | 958 CheckValueInputIs(node, 0, Type::Any()); |
959 CheckValueInputIs(node, 1, Type::Internal()); | |
960 CheckValueInputIs(node, 2, Type::Internal()); | |
961 CheckNotTyped(node); | 959 CheckNotTyped(node); |
962 break; | 960 break; |
963 | 961 |
964 case IrOpcode::kChangeTaggedSignedToInt32: { | 962 case IrOpcode::kChangeTaggedSignedToInt32: { |
965 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 | 963 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 |
966 // TODO(neis): Activate once ChangeRepresentation works in typer. | 964 // TODO(neis): Activate once ChangeRepresentation works in typer. |
967 // Type* from = Type::Intersect(Type::Signed32(), Type::Tagged()); | 965 // Type* from = Type::Intersect(Type::Signed32(), Type::Tagged()); |
968 // Type* to = Type::Intersect(Type::Signed32(), Type::UntaggedInt32()); | 966 // Type* to = Type::Intersect(Type::Signed32(), Type::UntaggedInt32()); |
969 // CheckValueInputIs(node, 0, from)); | 967 // CheckValueInputIs(node, 0, from)); |
970 // CheckTypeIs(node, to)); | 968 // CheckTypeIs(node, to)); |
(...skipping 709 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1680 replacement->op()->EffectOutputCount() > 0); | 1678 replacement->op()->EffectOutputCount() > 0); |
1681 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1679 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1682 replacement->opcode() == IrOpcode::kFrameState); | 1680 replacement->opcode() == IrOpcode::kFrameState); |
1683 } | 1681 } |
1684 | 1682 |
1685 #endif // DEBUG | 1683 #endif // DEBUG |
1686 | 1684 |
1687 } // namespace compiler | 1685 } // namespace compiler |
1688 } // namespace internal | 1686 } // namespace internal |
1689 } // namespace v8 | 1687 } // namespace v8 |
OLD | NEW |