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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 return GetFloat64RepresentationFor(node, output_rep, output_type, | 138 return GetFloat64RepresentationFor(node, output_rep, output_type, |
139 truncation); | 139 truncation); |
140 case MachineRepresentation::kBit: | 140 case MachineRepresentation::kBit: |
141 return GetBitRepresentationFor(node, output_rep, output_type); | 141 return GetBitRepresentationFor(node, output_rep, output_type); |
142 case MachineRepresentation::kWord8: | 142 case MachineRepresentation::kWord8: |
143 case MachineRepresentation::kWord16: | 143 case MachineRepresentation::kWord16: |
144 case MachineRepresentation::kWord32: | 144 case MachineRepresentation::kWord32: |
145 return GetWord32RepresentationFor(node, output_rep, output_type); | 145 return GetWord32RepresentationFor(node, output_rep, output_type); |
146 case MachineRepresentation::kWord64: | 146 case MachineRepresentation::kWord64: |
147 return GetWord64RepresentationFor(node, output_rep, output_type); | 147 return GetWord64RepresentationFor(node, output_rep, output_type); |
| 148 case MachineRepresentation::kSimd128: // Fall through. |
| 149 // TODO(bbudge) Handle conversions between tagged and untagged. |
| 150 break; |
148 case MachineRepresentation::kNone: | 151 case MachineRepresentation::kNone: |
149 return node; | 152 return node; |
150 } | 153 } |
151 UNREACHABLE(); | 154 UNREACHABLE(); |
152 return nullptr; | 155 return nullptr; |
153 } | 156 } |
154 | 157 |
155 | 158 |
156 Node* RepresentationChanger::GetTaggedRepresentationFor( | 159 Node* RepresentationChanger::GetTaggedRepresentationFor( |
157 Node* node, MachineRepresentation output_rep, Type* output_type) { | 160 Node* node, MachineRepresentation output_rep, Type* output_type) { |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 | 530 |
528 | 531 |
529 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 532 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
530 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 533 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
531 node); | 534 node); |
532 } | 535 } |
533 | 536 |
534 } // namespace compiler | 537 } // namespace compiler |
535 } // namespace internal | 538 } // namespace internal |
536 } // namespace v8 | 539 } // namespace v8 |
OLD | NEW |