| 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 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 706 CheckValueInputIs(node, 1, Type::String()); | 706 CheckValueInputIs(node, 1, Type::String()); |
| 707 CheckUpperIs(node, Type::Boolean()); | 707 CheckUpperIs(node, Type::Boolean()); |
| 708 break; | 708 break; |
| 709 case IrOpcode::kReferenceEqual: { | 709 case IrOpcode::kReferenceEqual: { |
| 710 // (Unique, Any) -> Boolean and | 710 // (Unique, Any) -> Boolean and |
| 711 // (Any, Unique) -> Boolean | 711 // (Any, Unique) -> Boolean |
| 712 CheckUpperIs(node, Type::Boolean()); | 712 CheckUpperIs(node, Type::Boolean()); |
| 713 break; | 713 break; |
| 714 } | 714 } |
| 715 case IrOpcode::kObjectIsNumber: | 715 case IrOpcode::kObjectIsNumber: |
| 716 case IrOpcode::kObjectIsReceiver: |
| 716 case IrOpcode::kObjectIsSmi: | 717 case IrOpcode::kObjectIsSmi: |
| 717 CheckValueInputIs(node, 0, Type::Any()); | 718 CheckValueInputIs(node, 0, Type::Any()); |
| 718 CheckUpperIs(node, Type::Boolean()); | 719 CheckUpperIs(node, Type::Boolean()); |
| 719 break; | 720 break; |
| 720 case IrOpcode::kAllocate: | 721 case IrOpcode::kAllocate: |
| 721 CheckValueInputIs(node, 0, Type::PlainNumber()); | 722 CheckValueInputIs(node, 0, Type::PlainNumber()); |
| 722 CheckUpperIs(node, Type::TaggedPointer()); | 723 CheckUpperIs(node, Type::TaggedPointer()); |
| 723 break; | 724 break; |
| 724 | 725 |
| 725 case IrOpcode::kChangeTaggedToInt32: { | 726 case IrOpcode::kChangeTaggedToInt32: { |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1268 replacement->op()->EffectOutputCount() > 0); | 1269 replacement->op()->EffectOutputCount() > 0); |
| 1269 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1270 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1270 replacement->opcode() == IrOpcode::kFrameState); | 1271 replacement->opcode() == IrOpcode::kFrameState); |
| 1271 } | 1272 } |
| 1272 | 1273 |
| 1273 #endif // DEBUG | 1274 #endif // DEBUG |
| 1274 | 1275 |
| 1275 } // namespace compiler | 1276 } // namespace compiler |
| 1276 } // namespace internal | 1277 } // namespace internal |
| 1277 } // namespace v8 | 1278 } // namespace v8 |
| OLD | NEW |