| 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 994 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 } | 1005 } |
| 1006 case IrOpcode::kChangeTaggedToFloat64: { | 1006 case IrOpcode::kChangeTaggedToFloat64: { |
| 1007 // NumberOrUndefined /\ Tagged -> Number /\ UntaggedFloat64 | 1007 // NumberOrUndefined /\ Tagged -> Number /\ UntaggedFloat64 |
| 1008 // TODO(neis): Activate once ChangeRepresentation works in typer. | 1008 // TODO(neis): Activate once ChangeRepresentation works in typer. |
| 1009 // Type* from = Type::Intersect(Type::Number(), Type::Tagged()); | 1009 // Type* from = Type::Intersect(Type::Number(), Type::Tagged()); |
| 1010 // Type* to = Type::Intersect(Type::Number(), Type::UntaggedFloat64()); | 1010 // Type* to = Type::Intersect(Type::Number(), Type::UntaggedFloat64()); |
| 1011 // CheckValueInputIs(node, 0, from)); | 1011 // CheckValueInputIs(node, 0, from)); |
| 1012 // CheckTypeIs(node, to)); | 1012 // CheckTypeIs(node, to)); |
| 1013 break; | 1013 break; |
| 1014 } | 1014 } |
| 1015 case IrOpcode::kChangeTaggedToTaggedSigned: |
| 1016 break; |
| 1015 case IrOpcode::kTruncateTaggedToFloat64: { | 1017 case IrOpcode::kTruncateTaggedToFloat64: { |
| 1016 // NumberOrUndefined /\ Tagged -> Number /\ UntaggedFloat64 | 1018 // NumberOrUndefined /\ Tagged -> Number /\ UntaggedFloat64 |
| 1017 // TODO(neis): Activate once ChangeRepresentation works in typer. | 1019 // TODO(neis): Activate once ChangeRepresentation works in typer. |
| 1018 // Type* from = Type::Intersect(Type::NumberOrUndefined(), | 1020 // Type* from = Type::Intersect(Type::NumberOrUndefined(), |
| 1019 // Type::Tagged()); | 1021 // Type::Tagged()); |
| 1020 // Type* to = Type::Intersect(Type::Number(), Type::UntaggedFloat64()); | 1022 // Type* to = Type::Intersect(Type::Number(), Type::UntaggedFloat64()); |
| 1021 // CheckValueInputIs(node, 0, from)); | 1023 // CheckValueInputIs(node, 0, from)); |
| 1022 // CheckTypeIs(node, to)); | 1024 // CheckTypeIs(node, to)); |
| 1023 break; | 1025 break; |
| 1024 } | 1026 } |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1699 replacement->op()->EffectOutputCount() > 0); | 1701 replacement->op()->EffectOutputCount() > 0); |
| 1700 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1702 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
| 1701 replacement->opcode() == IrOpcode::kFrameState); | 1703 replacement->opcode() == IrOpcode::kFrameState); |
| 1702 } | 1704 } |
| 1703 | 1705 |
| 1704 #endif // DEBUG | 1706 #endif // DEBUG |
| 1705 | 1707 |
| 1706 } // namespace compiler | 1708 } // namespace compiler |
| 1707 } // namespace internal | 1709 } // namespace internal |
| 1708 } // namespace v8 | 1710 } // namespace v8 |
| OLD | NEW |