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 1111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1122 case IrOpcode::kStoreElement: | 1122 case IrOpcode::kStoreElement: |
1123 // (Object, elementtype) -> _|_ | 1123 // (Object, elementtype) -> _|_ |
1124 // TODO(rossberg): activate once machine ops are typed. | 1124 // TODO(rossberg): activate once machine ops are typed. |
1125 // CheckValueInputIs(node, 0, Type::Object()); | 1125 // CheckValueInputIs(node, 0, Type::Object()); |
1126 // CheckValueInputIs(node, 1, ElementAccessOf(node->op()).type)); | 1126 // CheckValueInputIs(node, 1, ElementAccessOf(node->op()).type)); |
1127 CheckNotTyped(node); | 1127 CheckNotTyped(node); |
1128 break; | 1128 break; |
1129 case IrOpcode::kStoreTypedElement: | 1129 case IrOpcode::kStoreTypedElement: |
1130 CheckNotTyped(node); | 1130 CheckNotTyped(node); |
1131 break; | 1131 break; |
| 1132 case IrOpcode::kLoadFunctionPrototype: |
| 1133 CheckValueInputIs(node, 0, Type::Any()); |
| 1134 CheckTypeIs(node, Type::NonInternal()); |
| 1135 break; |
1132 case IrOpcode::kNumberSilenceNaN: | 1136 case IrOpcode::kNumberSilenceNaN: |
1133 CheckValueInputIs(node, 0, Type::Number()); | 1137 CheckValueInputIs(node, 0, Type::Number()); |
1134 CheckTypeIs(node, Type::Number()); | 1138 CheckTypeIs(node, Type::Number()); |
1135 break; | 1139 break; |
1136 case IrOpcode::kTypeGuard: | 1140 case IrOpcode::kTypeGuard: |
1137 CheckTypeIs(node, TypeGuardTypeOf(node->op())); | 1141 CheckTypeIs(node, TypeGuardTypeOf(node->op())); |
1138 break; | 1142 break; |
1139 | 1143 |
1140 // Machine operators | 1144 // Machine operators |
1141 // ----------------------- | 1145 // ----------------------- |
(...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1630 replacement->op()->EffectOutputCount() > 0); | 1634 replacement->op()->EffectOutputCount() > 0); |
1631 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1635 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1632 replacement->opcode() == IrOpcode::kFrameState); | 1636 replacement->opcode() == IrOpcode::kFrameState); |
1633 } | 1637 } |
1634 | 1638 |
1635 #endif // DEBUG | 1639 #endif // DEBUG |
1636 | 1640 |
1637 } // namespace compiler | 1641 } // namespace compiler |
1638 } // namespace internal | 1642 } // namespace internal |
1639 } // namespace v8 | 1643 } // namespace v8 |
OLD | NEW |