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 828 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
839 // (String, Unsigned32) -> UnsignedSmall | 839 // (String, Unsigned32) -> UnsignedSmall |
840 CheckValueInputIs(node, 0, Type::String()); | 840 CheckValueInputIs(node, 0, Type::String()); |
841 CheckValueInputIs(node, 1, Type::Unsigned32()); | 841 CheckValueInputIs(node, 1, Type::Unsigned32()); |
842 CheckTypeIs(node, Type::UnsignedSmall()); | 842 CheckTypeIs(node, Type::UnsignedSmall()); |
843 break; | 843 break; |
844 case IrOpcode::kStringFromCharCode: | 844 case IrOpcode::kStringFromCharCode: |
845 // Number -> String | 845 // Number -> String |
846 CheckValueInputIs(node, 0, Type::Number()); | 846 CheckValueInputIs(node, 0, Type::Number()); |
847 CheckTypeIs(node, Type::String()); | 847 CheckTypeIs(node, Type::String()); |
848 break; | 848 break; |
849 case IrOpcode::kStringFromCodePoint: | |
850 // (Unsigned32) -> String | |
851 CheckValueInputIs(node, 0, Type::Number()); | |
852 CheckTypeIs(node, Type::String()); | |
853 break; | |
854 case IrOpcode::kReferenceEqual: { | 849 case IrOpcode::kReferenceEqual: { |
855 // (Unique, Any) -> Boolean and | 850 // (Unique, Any) -> Boolean and |
856 // (Any, Unique) -> Boolean | 851 // (Any, Unique) -> Boolean |
857 CheckTypeIs(node, Type::Boolean()); | 852 CheckTypeIs(node, Type::Boolean()); |
858 break; | 853 break; |
859 } | 854 } |
860 case IrOpcode::kObjectIsCallable: | 855 case IrOpcode::kObjectIsCallable: |
861 case IrOpcode::kObjectIsNumber: | 856 case IrOpcode::kObjectIsNumber: |
862 case IrOpcode::kObjectIsReceiver: | 857 case IrOpcode::kObjectIsReceiver: |
863 case IrOpcode::kObjectIsSmi: | 858 case IrOpcode::kObjectIsSmi: |
(...skipping 736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 replacement->op()->EffectOutputCount() > 0); | 1595 replacement->op()->EffectOutputCount() > 0); |
1601 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1596 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1602 replacement->opcode() == IrOpcode::kFrameState); | 1597 replacement->opcode() == IrOpcode::kFrameState); |
1603 } | 1598 } |
1604 | 1599 |
1605 #endif // DEBUG | 1600 #endif // DEBUG |
1606 | 1601 |
1607 } // namespace compiler | 1602 } // namespace compiler |
1608 } // namespace internal | 1603 } // namespace internal |
1609 } // namespace v8 | 1604 } // namespace v8 |
OLD | NEW |