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