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 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 CheckValueInputIs(node, 0, Type::Any()); | 1020 CheckValueInputIs(node, 0, Type::Any()); |
1021 CheckTypeIs(node, Type::Number()); | 1021 CheckTypeIs(node, Type::Number()); |
1022 break; | 1022 break; |
1023 case IrOpcode::kCheckSmi: | 1023 case IrOpcode::kCheckSmi: |
1024 CheckValueInputIs(node, 0, Type::Any()); | 1024 CheckValueInputIs(node, 0, Type::Any()); |
1025 break; | 1025 break; |
1026 case IrOpcode::kCheckString: | 1026 case IrOpcode::kCheckString: |
1027 CheckValueInputIs(node, 0, Type::Any()); | 1027 CheckValueInputIs(node, 0, Type::Any()); |
1028 CheckTypeIs(node, Type::String()); | 1028 CheckTypeIs(node, Type::String()); |
1029 break; | 1029 break; |
1030 case IrOpcode::kCheckHasInPrototypeChain: | |
1031 CheckValueInputIs(node, 0, Type::Any()); | |
1032 CheckValueInputIs(node, 1, Type::NonInternal()); | |
1033 CheckTypeIs(node, Type::Boolean()); | |
1034 break; | |
1035 | 1030 |
1036 case IrOpcode::kCheckedInt32Add: | 1031 case IrOpcode::kCheckedInt32Add: |
1037 case IrOpcode::kCheckedInt32Sub: | 1032 case IrOpcode::kCheckedInt32Sub: |
1038 case IrOpcode::kCheckedInt32Div: | 1033 case IrOpcode::kCheckedInt32Div: |
1039 case IrOpcode::kCheckedInt32Mod: | 1034 case IrOpcode::kCheckedInt32Mod: |
1040 case IrOpcode::kCheckedUint32Div: | 1035 case IrOpcode::kCheckedUint32Div: |
1041 case IrOpcode::kCheckedUint32Mod: | 1036 case IrOpcode::kCheckedUint32Mod: |
1042 case IrOpcode::kCheckedInt32Mul: | 1037 case IrOpcode::kCheckedInt32Mul: |
1043 case IrOpcode::kCheckedInt32ToTaggedSigned: | 1038 case IrOpcode::kCheckedInt32ToTaggedSigned: |
1044 case IrOpcode::kCheckedUint32ToInt32: | 1039 case IrOpcode::kCheckedUint32ToInt32: |
(...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1598 replacement->op()->EffectOutputCount() > 0); | 1593 replacement->op()->EffectOutputCount() > 0); |
1599 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1594 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1600 replacement->opcode() == IrOpcode::kFrameState); | 1595 replacement->opcode() == IrOpcode::kFrameState); |
1601 } | 1596 } |
1602 | 1597 |
1603 #endif // DEBUG | 1598 #endif // DEBUG |
1604 | 1599 |
1605 } // namespace compiler | 1600 } // namespace compiler |
1606 } // namespace internal | 1601 } // namespace internal |
1607 } // namespace v8 | 1602 } // namespace v8 |
OLD | NEW |