Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: src/compiler/representation-change.cc

Issue 1693963004: Add a kSimd128 machine type for Turbofan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698