| 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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 break; | 712 break; |
| 713 case IrOpcode::kReferenceEqual: { | 713 case IrOpcode::kReferenceEqual: { |
| 714 // (Unique, Any) -> Boolean and | 714 // (Unique, Any) -> Boolean and |
| 715 // (Any, Unique) -> Boolean | 715 // (Any, Unique) -> Boolean |
| 716 CheckUpperIs(node, Type::Boolean()); | 716 CheckUpperIs(node, Type::Boolean()); |
| 717 break; | 717 break; |
| 718 } | 718 } |
| 719 case IrOpcode::kObjectIsNumber: | 719 case IrOpcode::kObjectIsNumber: |
| 720 case IrOpcode::kObjectIsReceiver: | 720 case IrOpcode::kObjectIsReceiver: |
| 721 case IrOpcode::kObjectIsSmi: | 721 case IrOpcode::kObjectIsSmi: |
| 722 case IrOpcode::kObjectIsUndetectable: |
| 722 CheckValueInputIs(node, 0, Type::Any()); | 723 CheckValueInputIs(node, 0, Type::Any()); |
| 723 CheckUpperIs(node, Type::Boolean()); | 724 CheckUpperIs(node, Type::Boolean()); |
| 724 break; | 725 break; |
| 725 case IrOpcode::kAllocate: | 726 case IrOpcode::kAllocate: |
| 726 CheckValueInputIs(node, 0, Type::PlainNumber()); | 727 CheckValueInputIs(node, 0, Type::PlainNumber()); |
| 727 CheckUpperIs(node, Type::TaggedPointer()); | 728 CheckUpperIs(node, Type::TaggedPointer()); |
| 728 break; | 729 break; |
| 729 | 730 |
| 730 case IrOpcode::kChangeTaggedToInt32: { | 731 case IrOpcode::kChangeTaggedToInt32: { |
| 731 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 | 732 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 |
| (...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1278 replacement->op()->EffectOutputCount() > 0); | 1279 replacement->op()->EffectOutputCount() > 0); |
| 1279 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1280 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1280 replacement->opcode() == IrOpcode::kFrameState); | 1281 replacement->opcode() == IrOpcode::kFrameState); |
| 1281 } | 1282 } |
| 1282 | 1283 |
| 1283 #endif // DEBUG | 1284 #endif // DEBUG |
| 1284 | 1285 |
| 1285 } // namespace compiler | 1286 } // namespace compiler |
| 1286 } // namespace internal | 1287 } // namespace internal |
| 1287 } // namespace v8 | 1288 } // namespace v8 |
| OLD | NEW |