Chromium Code Reviews| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 139 return GetFloat64RepresentationFor(node, output_rep, output_type, | 139 return GetFloat64RepresentationFor(node, output_rep, output_type, |
| 140 truncation); | 140 truncation); |
| 141 case MachineRepresentation::kBit: | 141 case MachineRepresentation::kBit: |
| 142 return GetBitRepresentationFor(node, output_rep, output_type); | 142 return GetBitRepresentationFor(node, output_rep, output_type); |
| 143 case MachineRepresentation::kWord8: | 143 case MachineRepresentation::kWord8: |
| 144 case MachineRepresentation::kWord16: | 144 case MachineRepresentation::kWord16: |
| 145 case MachineRepresentation::kWord32: | 145 case MachineRepresentation::kWord32: |
| 146 return GetWord32RepresentationFor(node, output_rep, output_type); | 146 return GetWord32RepresentationFor(node, output_rep, output_type); |
| 147 case MachineRepresentation::kWord64: | 147 case MachineRepresentation::kWord64: |
| 148 return GetWord64RepresentationFor(node, output_rep, output_type); | 148 return GetWord64RepresentationFor(node, output_rep, output_type); |
| 149 case MachineRepresentation::kSimd128: // Fall through. | |
| 150 // TODO(bbudge) Handle conversions between tagged and untagged. | |
|
Jarin
2016/02/17 12:06:46
Until then, could you DCHECK(output_rep == kSimd12
bbudge
2016/02/17 18:57:14
break seems right here. Done.
| |
| 149 case MachineRepresentation::kNone: | 151 case MachineRepresentation::kNone: |
| 150 return node; | 152 return node; |
| 151 } | 153 } |
| 152 UNREACHABLE(); | 154 UNREACHABLE(); |
| 153 return nullptr; | 155 return nullptr; |
| 154 } | 156 } |
| 155 | 157 |
| 156 | 158 |
| 157 Node* RepresentationChanger::GetTaggedRepresentationFor( | 159 Node* RepresentationChanger::GetTaggedRepresentationFor( |
| 158 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... | |
| 528 | 530 |
| 529 | 531 |
| 530 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { | 532 Node* RepresentationChanger::InsertChangeTaggedToFloat64(Node* node) { |
| 531 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), | 533 return jsgraph()->graph()->NewNode(simplified()->ChangeTaggedToFloat64(), |
| 532 node); | 534 node); |
| 533 } | 535 } |
| 534 | 536 |
| 535 } // namespace compiler | 537 } // namespace compiler |
| 536 } // namespace internal | 538 } // namespace internal |
| 537 } // namespace v8 | 539 } // namespace v8 |
| OLD | NEW |