| 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 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1080 CheckValueInputIs(node, 1, Type::Unsigned31()); | 1080 CheckValueInputIs(node, 1, Type::Unsigned31()); |
| 1081 CheckTypeIs(node, Type::Unsigned31()); | 1081 CheckTypeIs(node, Type::Unsigned31()); |
| 1082 break; | 1082 break; |
| 1083 case IrOpcode::kCheckHeapObject: | 1083 case IrOpcode::kCheckHeapObject: |
| 1084 CheckValueInputIs(node, 0, Type::Any()); | 1084 CheckValueInputIs(node, 0, Type::Any()); |
| 1085 break; | 1085 break; |
| 1086 case IrOpcode::kCheckIf: | 1086 case IrOpcode::kCheckIf: |
| 1087 CheckValueInputIs(node, 0, Type::Boolean()); | 1087 CheckValueInputIs(node, 0, Type::Boolean()); |
| 1088 CheckNotTyped(node); | 1088 CheckNotTyped(node); |
| 1089 break; | 1089 break; |
| 1090 case IrOpcode::kCheckInternalizedString: |
| 1091 CheckValueInputIs(node, 0, Type::Any()); |
| 1092 CheckTypeIs(node, Type::InternalizedString()); |
| 1093 break; |
| 1090 case IrOpcode::kCheckMaps: | 1094 case IrOpcode::kCheckMaps: |
| 1091 // (Any, Internal, ..., Internal) -> Any | 1095 // (Any, Internal, ..., Internal) -> Any |
| 1092 CheckValueInputIs(node, 0, Type::Any()); | 1096 CheckValueInputIs(node, 0, Type::Any()); |
| 1093 for (int i = 1; i < node->op()->ValueInputCount(); ++i) { | 1097 for (int i = 1; i < node->op()->ValueInputCount(); ++i) { |
| 1094 CheckValueInputIs(node, i, Type::Internal()); | 1098 CheckValueInputIs(node, i, Type::Internal()); |
| 1095 } | 1099 } |
| 1096 CheckNotTyped(node); | 1100 CheckNotTyped(node); |
| 1097 break; | 1101 break; |
| 1098 case IrOpcode::kCheckNumber: | 1102 case IrOpcode::kCheckNumber: |
| 1099 CheckValueInputIs(node, 0, Type::Any()); | 1103 CheckValueInputIs(node, 0, Type::Any()); |
| (...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1676 replacement->op()->EffectOutputCount() > 0); | 1680 replacement->op()->EffectOutputCount() > 0); |
| 1677 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1681 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1678 replacement->opcode() == IrOpcode::kFrameState); | 1682 replacement->opcode() == IrOpcode::kFrameState); |
| 1679 } | 1683 } |
| 1680 | 1684 |
| 1681 #endif // DEBUG | 1685 #endif // DEBUG |
| 1682 | 1686 |
| 1683 } // namespace compiler | 1687 } // namespace compiler |
| 1684 } // namespace internal | 1688 } // namespace internal |
| 1685 } // namespace v8 | 1689 } // namespace v8 |
| OLD | NEW |