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 838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 break; | 849 break; |
850 case IrOpcode::kAllocate: | 850 case IrOpcode::kAllocate: |
851 CheckValueInputIs(node, 0, Type::PlainNumber()); | 851 CheckValueInputIs(node, 0, Type::PlainNumber()); |
852 CheckUpperIs(node, Type::TaggedPointer()); | 852 CheckUpperIs(node, Type::TaggedPointer()); |
853 break; | 853 break; |
854 case IrOpcode::kEnsureWritableFastElements: | 854 case IrOpcode::kEnsureWritableFastElements: |
855 CheckValueInputIs(node, 0, Type::Any()); | 855 CheckValueInputIs(node, 0, Type::Any()); |
856 CheckValueInputIs(node, 1, Type::Internal()); | 856 CheckValueInputIs(node, 1, Type::Internal()); |
857 CheckUpperIs(node, Type::Internal()); | 857 CheckUpperIs(node, Type::Internal()); |
858 break; | 858 break; |
| 859 case IrOpcode::kMaybeGrowFastElements: |
| 860 CheckValueInputIs(node, 0, Type::Any()); |
| 861 CheckValueInputIs(node, 1, Type::Internal()); |
| 862 CheckValueInputIs(node, 2, Type::Unsigned31()); |
| 863 CheckValueInputIs(node, 3, Type::Unsigned31()); |
| 864 CheckUpperIs(node, Type::Internal()); |
| 865 break; |
859 case IrOpcode::kTransitionElementsKind: | 866 case IrOpcode::kTransitionElementsKind: |
860 CheckValueInputIs(node, 0, Type::Any()); | 867 CheckValueInputIs(node, 0, Type::Any()); |
861 CheckValueInputIs(node, 1, Type::Internal()); | 868 CheckValueInputIs(node, 1, Type::Internal()); |
862 CheckValueInputIs(node, 2, Type::Internal()); | 869 CheckValueInputIs(node, 2, Type::Internal()); |
863 CheckNotTyped(node); | 870 CheckNotTyped(node); |
864 break; | 871 break; |
865 | 872 |
866 case IrOpcode::kChangeTaggedSignedToInt32: { | 873 case IrOpcode::kChangeTaggedSignedToInt32: { |
867 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 | 874 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 |
868 // TODO(neis): Activate once ChangeRepresentation works in typer. | 875 // TODO(neis): Activate once ChangeRepresentation works in typer. |
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1571 replacement->op()->EffectOutputCount() > 0); | 1578 replacement->op()->EffectOutputCount() > 0); |
1572 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1579 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1573 replacement->opcode() == IrOpcode::kFrameState); | 1580 replacement->opcode() == IrOpcode::kFrameState); |
1574 } | 1581 } |
1575 | 1582 |
1576 #endif // DEBUG | 1583 #endif // DEBUG |
1577 | 1584 |
1578 } // namespace compiler | 1585 } // namespace compiler |
1579 } // namespace internal | 1586 } // namespace internal |
1580 } // namespace v8 | 1587 } // namespace v8 |
OLD | NEW |