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 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 CheckValueInputIs(node, 2, Type::SignedSmall()); | 945 CheckValueInputIs(node, 2, Type::SignedSmall()); |
946 CheckTypeIs(node, Type::SignedSmall()); | 946 CheckTypeIs(node, Type::SignedSmall()); |
947 break; | 947 break; |
948 | 948 |
949 case IrOpcode::kReferenceEqual: | 949 case IrOpcode::kReferenceEqual: |
950 // (Unique, Any) -> Boolean and | 950 // (Unique, Any) -> Boolean and |
951 // (Any, Unique) -> Boolean | 951 // (Any, Unique) -> Boolean |
952 CheckTypeIs(node, Type::Boolean()); | 952 CheckTypeIs(node, Type::Boolean()); |
953 break; | 953 break; |
954 | 954 |
955 case IrOpcode::kObjectIsCallable: | 955 case IrOpcode::kObjectIsDetectableCallable: |
956 case IrOpcode::kObjectIsNonCallable: | 956 case IrOpcode::kObjectIsNonCallable: |
957 case IrOpcode::kObjectIsNumber: | 957 case IrOpcode::kObjectIsNumber: |
958 case IrOpcode::kObjectIsReceiver: | 958 case IrOpcode::kObjectIsReceiver: |
959 case IrOpcode::kObjectIsSmi: | 959 case IrOpcode::kObjectIsSmi: |
960 case IrOpcode::kObjectIsString: | 960 case IrOpcode::kObjectIsString: |
961 case IrOpcode::kObjectIsUndetectable: | 961 case IrOpcode::kObjectIsUndetectable: |
962 case IrOpcode::kArrayBufferWasNeutered: | 962 case IrOpcode::kArrayBufferWasNeutered: |
963 CheckValueInputIs(node, 0, Type::Any()); | 963 CheckValueInputIs(node, 0, Type::Any()); |
964 CheckTypeIs(node, Type::Boolean()); | 964 CheckTypeIs(node, Type::Boolean()); |
965 break; | 965 break; |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1712 replacement->op()->EffectOutputCount() > 0); | 1712 replacement->op()->EffectOutputCount() > 0); |
1713 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1713 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1714 replacement->opcode() == IrOpcode::kFrameState); | 1714 replacement->opcode() == IrOpcode::kFrameState); |
1715 } | 1715 } |
1716 | 1716 |
1717 #endif // DEBUG | 1717 #endif // DEBUG |
1718 | 1718 |
1719 } // namespace compiler | 1719 } // namespace compiler |
1720 } // namespace internal | 1720 } // namespace internal |
1721 } // namespace v8 | 1721 } // namespace v8 |
OLD | NEW |