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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 return GetBitRepresentationFor(node, output_rep, output_type); | 187 return GetBitRepresentationFor(node, output_rep, output_type); |
188 case MachineRepresentation::kWord8: | 188 case MachineRepresentation::kWord8: |
189 case MachineRepresentation::kWord16: | 189 case MachineRepresentation::kWord16: |
190 case MachineRepresentation::kWord32: | 190 case MachineRepresentation::kWord32: |
191 return GetWord32RepresentationFor(node, output_rep, output_type, use_node, | 191 return GetWord32RepresentationFor(node, output_rep, output_type, use_node, |
192 use_info); | 192 use_info); |
193 case MachineRepresentation::kWord64: | 193 case MachineRepresentation::kWord64: |
194 DCHECK(use_info.type_check() == TypeCheckKind::kNone); | 194 DCHECK(use_info.type_check() == TypeCheckKind::kNone); |
195 return GetWord64RepresentationFor(node, output_rep, output_type); | 195 return GetWord64RepresentationFor(node, output_rep, output_type); |
196 case MachineRepresentation::kSimd128: | 196 case MachineRepresentation::kSimd128: |
197 case MachineRepresentation::kSimd1x4: | |
198 case MachineRepresentation::kSimd1x8: | |
199 case MachineRepresentation::kSimd1x16: | |
200 case MachineRepresentation::kNone: | 197 case MachineRepresentation::kNone: |
201 return node; | 198 return node; |
202 } | 199 } |
203 UNREACHABLE(); | 200 UNREACHABLE(); |
204 } | 201 } |
205 | 202 |
206 Node* RepresentationChanger::GetTaggedSignedRepresentationFor( | 203 Node* RepresentationChanger::GetTaggedSignedRepresentationFor( |
207 Node* node, MachineRepresentation output_rep, Type* output_type, | 204 Node* node, MachineRepresentation output_rep, Type* output_type, |
208 Node* use_node, UseInfo use_info) { | 205 Node* use_node, UseInfo use_info) { |
209 // Eagerly fold representation changes for constants. | 206 // Eagerly fold representation changes for constants. |
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 node); | 1091 node); |
1095 } | 1092 } |
1096 | 1093 |
1097 Node* RepresentationChanger::InsertChangeUint32ToFloat64(Node* node) { | 1094 Node* RepresentationChanger::InsertChangeUint32ToFloat64(Node* node) { |
1098 return jsgraph()->graph()->NewNode(machine()->ChangeUint32ToFloat64(), node); | 1095 return jsgraph()->graph()->NewNode(machine()->ChangeUint32ToFloat64(), node); |
1099 } | 1096 } |
1100 | 1097 |
1101 } // namespace compiler | 1098 } // namespace compiler |
1102 } // namespace internal | 1099 } // namespace internal |
1103 } // namespace v8 | 1100 } // namespace v8 |
OLD | NEW |