| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/representation-change.h" | 5 #include "src/compiler/representation-change.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/code-factory.h" | 10 #include "src/code-factory.h" |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 DCHECK(use_info.type_check() == TypeCheckKind::kNone); | 162 DCHECK(use_info.type_check() == TypeCheckKind::kNone); |
| 163 return GetBitRepresentationFor(node, output_rep, output_type); | 163 return GetBitRepresentationFor(node, output_rep, output_type); |
| 164 case MachineRepresentation::kWord8: | 164 case MachineRepresentation::kWord8: |
| 165 case MachineRepresentation::kWord16: | 165 case MachineRepresentation::kWord16: |
| 166 case MachineRepresentation::kWord32: | 166 case MachineRepresentation::kWord32: |
| 167 return GetWord32RepresentationFor(node, output_rep, output_type, use_node, | 167 return GetWord32RepresentationFor(node, output_rep, output_type, use_node, |
| 168 use_info); | 168 use_info); |
| 169 case MachineRepresentation::kWord64: | 169 case MachineRepresentation::kWord64: |
| 170 DCHECK(use_info.type_check() == TypeCheckKind::kNone); | 170 DCHECK(use_info.type_check() == TypeCheckKind::kNone); |
| 171 return GetWord64RepresentationFor(node, output_rep, output_type); | 171 return GetWord64RepresentationFor(node, output_rep, output_type); |
| 172 case MachineRepresentation::kSimd128: // Fall through. | 172 case MachineRepresentation::kSimd128: |
| 173 // TODO(bbudge) Handle conversions between tagged and untagged. | 173 case MachineRepresentation::kSimd1x4: |
| 174 break; | 174 case MachineRepresentation::kSimd1x8: |
| 175 case MachineRepresentation::kSimd1x16: |
| 175 case MachineRepresentation::kNone: | 176 case MachineRepresentation::kNone: |
| 176 return node; | 177 return node; |
| 177 } | 178 } |
| 178 UNREACHABLE(); | 179 UNREACHABLE(); |
| 179 return nullptr; | 180 return nullptr; |
| 180 } | 181 } |
| 181 | 182 |
| 182 Node* RepresentationChanger::GetTaggedSignedRepresentationFor( | 183 Node* RepresentationChanger::GetTaggedSignedRepresentationFor( |
| 183 Node* node, MachineRepresentation output_rep, Type* output_type, | 184 Node* node, MachineRepresentation output_rep, Type* output_type, |
| 184 Node* use_node, UseInfo use_info) { | 185 Node* use_node, UseInfo use_info) { |
| (...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 node); | 1037 node); |
| 1037 } | 1038 } |
| 1038 | 1039 |
| 1039 Node* RepresentationChanger::InsertChangeUint32ToFloat64(Node* node) { | 1040 Node* RepresentationChanger::InsertChangeUint32ToFloat64(Node* node) { |
| 1040 return jsgraph()->graph()->NewNode(machine()->ChangeUint32ToFloat64(), node); | 1041 return jsgraph()->graph()->NewNode(machine()->ChangeUint32ToFloat64(), node); |
| 1041 } | 1042 } |
| 1042 | 1043 |
| 1043 } // namespace compiler | 1044 } // namespace compiler |
| 1044 } // namespace internal | 1045 } // namespace internal |
| 1045 } // namespace v8 | 1046 } // namespace v8 |
| OLD | NEW |