| 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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 case IrOpcode::kReferenceEqual: { | 677 case IrOpcode::kReferenceEqual: { |
| 678 // (Unique, Any) -> Boolean and | 678 // (Unique, Any) -> Boolean and |
| 679 // (Any, Unique) -> Boolean | 679 // (Any, Unique) -> Boolean |
| 680 CheckUpperIs(node, Type::Boolean()); | 680 CheckUpperIs(node, Type::Boolean()); |
| 681 break; | 681 break; |
| 682 } | 682 } |
| 683 case IrOpcode::kObjectIsSmi: | 683 case IrOpcode::kObjectIsSmi: |
| 684 CheckValueInputIs(node, 0, Type::Any()); | 684 CheckValueInputIs(node, 0, Type::Any()); |
| 685 CheckUpperIs(node, Type::Boolean()); | 685 CheckUpperIs(node, Type::Boolean()); |
| 686 break; | 686 break; |
| 687 case IrOpcode::kObjectIsNonNegativeSmi: | |
| 688 CheckValueInputIs(node, 0, Type::Any()); | |
| 689 CheckUpperIs(node, Type::Boolean()); | |
| 690 break; | |
| 691 case IrOpcode::kAllocate: | 687 case IrOpcode::kAllocate: |
| 692 CheckValueInputIs(node, 0, Type::PlainNumber()); | 688 CheckValueInputIs(node, 0, Type::PlainNumber()); |
| 693 CheckUpperIs(node, Type::TaggedPointer()); | 689 CheckUpperIs(node, Type::TaggedPointer()); |
| 694 break; | 690 break; |
| 695 | 691 |
| 696 case IrOpcode::kChangeTaggedToInt32: { | 692 case IrOpcode::kChangeTaggedToInt32: { |
| 697 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 | 693 // Signed32 /\ Tagged -> Signed32 /\ UntaggedInt32 |
| 698 // TODO(neis): Activate once ChangeRepresentation works in typer. | 694 // TODO(neis): Activate once ChangeRepresentation works in typer. |
| 699 // Type* from = Type::Intersect(Type::Signed32(), Type::Tagged()); | 695 // Type* from = Type::Intersect(Type::Signed32(), Type::Tagged()); |
| 700 // Type* to = Type::Intersect(Type::Signed32(), Type::UntaggedInt32()); | 696 // Type* to = Type::Intersect(Type::Signed32(), Type::UntaggedInt32()); |
| (...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1149 // Check inputs for all nodes in the block. | 1145 // Check inputs for all nodes in the block. |
| 1150 for (size_t i = 0; i < block->NodeCount(); i++) { | 1146 for (size_t i = 0; i < block->NodeCount(); i++) { |
| 1151 Node* node = block->NodeAt(i); | 1147 Node* node = block->NodeAt(i); |
| 1152 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); | 1148 CheckInputsDominate(schedule, block, node, static_cast<int>(i) - 1); |
| 1153 } | 1149 } |
| 1154 } | 1150 } |
| 1155 } | 1151 } |
| 1156 } // namespace compiler | 1152 } // namespace compiler |
| 1157 } // namespace internal | 1153 } // namespace internal |
| 1158 } // namespace v8 | 1154 } // namespace v8 |
| OLD | NEW |