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 898 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
909 case IrOpcode::kObjectIsCallable: | 909 case IrOpcode::kObjectIsCallable: |
910 case IrOpcode::kObjectIsNumber: | 910 case IrOpcode::kObjectIsNumber: |
911 case IrOpcode::kObjectIsReceiver: | 911 case IrOpcode::kObjectIsReceiver: |
912 case IrOpcode::kObjectIsSmi: | 912 case IrOpcode::kObjectIsSmi: |
913 case IrOpcode::kObjectIsString: | 913 case IrOpcode::kObjectIsString: |
914 case IrOpcode::kObjectIsUndetectable: | 914 case IrOpcode::kObjectIsUndetectable: |
915 case IrOpcode::kArrayBufferWasNeutered: | 915 case IrOpcode::kArrayBufferWasNeutered: |
916 CheckValueInputIs(node, 0, Type::Any()); | 916 CheckValueInputIs(node, 0, Type::Any()); |
917 CheckTypeIs(node, Type::Boolean()); | 917 CheckTypeIs(node, Type::Boolean()); |
918 break; | 918 break; |
| 919 case IrOpcode::kNewRestParameterElements: |
| 920 case IrOpcode::kNewUnmappedArgumentsElements: |
| 921 CheckTypeIs(node, Type::OtherInternal()); |
| 922 break; |
919 case IrOpcode::kAllocate: | 923 case IrOpcode::kAllocate: |
920 CheckValueInputIs(node, 0, Type::PlainNumber()); | 924 CheckValueInputIs(node, 0, Type::PlainNumber()); |
921 break; | 925 break; |
922 case IrOpcode::kEnsureWritableFastElements: | 926 case IrOpcode::kEnsureWritableFastElements: |
923 CheckValueInputIs(node, 0, Type::Any()); | 927 CheckValueInputIs(node, 0, Type::Any()); |
924 CheckValueInputIs(node, 1, Type::Internal()); | 928 CheckValueInputIs(node, 1, Type::Internal()); |
925 CheckTypeIs(node, Type::Internal()); | 929 CheckTypeIs(node, Type::Internal()); |
926 break; | 930 break; |
927 case IrOpcode::kMaybeGrowFastElements: | 931 case IrOpcode::kMaybeGrowFastElements: |
928 CheckValueInputIs(node, 0, Type::Any()); | 932 CheckValueInputIs(node, 0, Type::Any()); |
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 replacement->op()->EffectOutputCount() > 0); | 1657 replacement->op()->EffectOutputCount() > 0); |
1654 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1658 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1655 replacement->opcode() == IrOpcode::kFrameState); | 1659 replacement->opcode() == IrOpcode::kFrameState); |
1656 } | 1660 } |
1657 | 1661 |
1658 #endif // DEBUG | 1662 #endif // DEBUG |
1659 | 1663 |
1660 } // namespace compiler | 1664 } // namespace compiler |
1661 } // namespace internal | 1665 } // namespace internal |
1662 } // namespace v8 | 1666 } // namespace v8 |
OLD | NEW |