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 812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
823 case IrOpcode::kObjectIsSmi: | 823 case IrOpcode::kObjectIsSmi: |
824 case IrOpcode::kObjectIsString: | 824 case IrOpcode::kObjectIsString: |
825 case IrOpcode::kObjectIsUndetectable: | 825 case IrOpcode::kObjectIsUndetectable: |
826 CheckValueInputIs(node, 0, Type::Any()); | 826 CheckValueInputIs(node, 0, Type::Any()); |
827 CheckUpperIs(node, Type::Boolean()); | 827 CheckUpperIs(node, Type::Boolean()); |
828 break; | 828 break; |
829 case IrOpcode::kAllocate: | 829 case IrOpcode::kAllocate: |
830 CheckValueInputIs(node, 0, Type::PlainNumber()); | 830 CheckValueInputIs(node, 0, Type::PlainNumber()); |
831 CheckUpperIs(node, Type::TaggedPointer()); | 831 CheckUpperIs(node, Type::TaggedPointer()); |
832 break; | 832 break; |
| 833 case IrOpcode::kTransitionElementsKind: |
| 834 CheckValueInputIs(node, 0, Type::Any()); |
| 835 CheckValueInputIs(node, 1, Type::Internal()); |
| 836 CheckValueInputIs(node, 2, Type::Internal()); |
| 837 CheckNotTyped(node); |
| 838 break; |
833 | 839 |
834 case IrOpcode::kChangeTaggedSignedToInt32: { | 840 case IrOpcode::kChangeTaggedSignedToInt32: { |
835 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 | 841 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 |
836 // TODO(neis): Activate once ChangeRepresentation works in typer. | 842 // TODO(neis): Activate once ChangeRepresentation works in typer. |
837 // Type* from = Type::Intersect(Type::Signed32(), Type::Tagged()); | 843 // Type* from = Type::Intersect(Type::Signed32(), Type::Tagged()); |
838 // Type* to = Type::Intersect(Type::Signed32(), Type::UntaggedInt32()); | 844 // Type* to = Type::Intersect(Type::Signed32(), Type::UntaggedInt32()); |
839 // CheckValueInputIs(node, 0, from)); | 845 // CheckValueInputIs(node, 0, from)); |
840 // CheckUpperIs(node, to)); | 846 // CheckUpperIs(node, to)); |
841 break; | 847 break; |
842 } | 848 } |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1509 replacement->op()->EffectOutputCount() > 0); | 1515 replacement->op()->EffectOutputCount() > 0); |
1510 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1516 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1511 replacement->opcode() == IrOpcode::kFrameState); | 1517 replacement->opcode() == IrOpcode::kFrameState); |
1512 } | 1518 } |
1513 | 1519 |
1514 #endif // DEBUG | 1520 #endif // DEBUG |
1515 | 1521 |
1516 } // namespace compiler | 1522 } // namespace compiler |
1517 } // namespace internal | 1523 } // namespace internal |
1518 } // namespace v8 | 1524 } // namespace v8 |
OLD | NEW |