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 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
939 } | 939 } |
940 case IrOpcode::kTruncateTaggedToWord32: { | 940 case IrOpcode::kTruncateTaggedToWord32: { |
941 // Number /\ Tagged -> Signed32 /\ UntaggedInt32 | 941 // Number /\ Tagged -> Signed32 /\ UntaggedInt32 |
942 // TODO(neis): Activate once ChangeRepresentation works in typer. | 942 // TODO(neis): Activate once ChangeRepresentation works in typer. |
943 // Type* from = Type::Intersect(Type::Number(), Type::Tagged()); | 943 // Type* from = Type::Intersect(Type::Number(), Type::Tagged()); |
944 // Type* to = Type::Intersect(Type::Number(), Type::UntaggedInt32()); | 944 // Type* to = Type::Intersect(Type::Number(), Type::UntaggedInt32()); |
945 // CheckValueInputIs(node, 0, from)); | 945 // CheckValueInputIs(node, 0, from)); |
946 // CheckUpperIs(node, to)); | 946 // CheckUpperIs(node, to)); |
947 break; | 947 break; |
948 } | 948 } |
949 case IrOpcode::kTruncateTaggedToBit: | |
950 break; | |
951 | 949 |
952 case IrOpcode::kCheckBounds: | 950 case IrOpcode::kCheckBounds: |
953 CheckValueInputIs(node, 0, Type::Any()); | 951 CheckValueInputIs(node, 0, Type::Any()); |
954 CheckValueInputIs(node, 1, Type::Unsigned31()); | 952 CheckValueInputIs(node, 1, Type::Unsigned31()); |
955 CheckUpperIs(node, Type::Unsigned31()); | 953 CheckUpperIs(node, Type::Unsigned31()); |
956 break; | 954 break; |
957 case IrOpcode::kCheckNumber: | 955 case IrOpcode::kCheckNumber: |
958 CheckValueInputIs(node, 0, Type::Any()); | 956 CheckValueInputIs(node, 0, Type::Any()); |
959 CheckUpperIs(node, Type::Number()); | 957 CheckUpperIs(node, Type::Number()); |
960 break; | 958 break; |
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1517 replacement->op()->EffectOutputCount() > 0); | 1515 replacement->op()->EffectOutputCount() > 0); |
1518 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || | 1516 DCHECK(!NodeProperties::IsFrameStateEdge(edge) || |
1519 replacement->opcode() == IrOpcode::kFrameState); | 1517 replacement->opcode() == IrOpcode::kFrameState); |
1520 } | 1518 } |
1521 | 1519 |
1522 #endif // DEBUG | 1520 #endif // DEBUG |
1523 | 1521 |
1524 } // namespace compiler | 1522 } // namespace compiler |
1525 } // namespace internal | 1523 } // namespace internal |
1526 } // namespace v8 | 1524 } // namespace v8 |
OLD | NEW |