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

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

Issue 2700813002: [V8] Implement SIMD Boolean vector types to allow mask registers. (Closed)
Patch Set: Rebase. Created 3 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/s390/instruction-selector-s390.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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/compiler/register-allocator.cc ('k') | src/compiler/s390/instruction-selector-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698