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

Side by Side Diff: src/compiler/instruction-selector.h

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/instruction.cc ('k') | src/compiler/instruction-selector.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_ 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_
6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "src/compiler/common-operator.h" 10 #include "src/compiler/common-operator.h"
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 } 256 }
257 void MarkAsFloat32(Node* node) { 257 void MarkAsFloat32(Node* node) {
258 MarkAsRepresentation(MachineRepresentation::kFloat32, node); 258 MarkAsRepresentation(MachineRepresentation::kFloat32, node);
259 } 259 }
260 void MarkAsFloat64(Node* node) { 260 void MarkAsFloat64(Node* node) {
261 MarkAsRepresentation(MachineRepresentation::kFloat64, node); 261 MarkAsRepresentation(MachineRepresentation::kFloat64, node);
262 } 262 }
263 void MarkAsSimd128(Node* node) { 263 void MarkAsSimd128(Node* node) {
264 MarkAsRepresentation(MachineRepresentation::kSimd128, node); 264 MarkAsRepresentation(MachineRepresentation::kSimd128, node);
265 } 265 }
266 void MarkAsSimd1x4(Node* node) {
267 if (kSimdMaskRegisters) {
268 MarkAsRepresentation(MachineRepresentation::kSimd1x4, node);
269 } else {
270 MarkAsSimd128(node);
271 }
272 }
273 void MarkAsSimd1x8(Node* node) {
274 if (kSimdMaskRegisters) {
275 MarkAsRepresentation(MachineRepresentation::kSimd1x8, node);
276 } else {
277 MarkAsSimd128(node);
278 }
279 }
280 void MarkAsSimd1x16(Node* node) {
281 if (kSimdMaskRegisters) {
282 MarkAsRepresentation(MachineRepresentation::kSimd1x16, node);
283 } else {
284 MarkAsSimd128(node);
285 }
286 }
266 void MarkAsReference(Node* node) { 287 void MarkAsReference(Node* node) {
267 MarkAsRepresentation(MachineRepresentation::kTagged, node); 288 MarkAsRepresentation(MachineRepresentation::kTagged, node);
268 } 289 }
269 290
270 // Inform the register allocation of the representation of the unallocated 291 // Inform the register allocation of the representation of the unallocated
271 // operand {op}. 292 // operand {op}.
272 void MarkAsRepresentation(MachineRepresentation rep, 293 void MarkAsRepresentation(MachineRepresentation rep,
273 const InstructionOperand& op); 294 const InstructionOperand& op);
274 295
275 enum CallBufferFlag { 296 enum CallBufferFlag {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 EnableSerialization enable_serialization_; 411 EnableSerialization enable_serialization_;
391 Frame* frame_; 412 Frame* frame_;
392 bool instruction_selection_failed_; 413 bool instruction_selection_failed_;
393 }; 414 };
394 415
395 } // namespace compiler 416 } // namespace compiler
396 } // namespace internal 417 } // namespace internal
397 } // namespace v8 418 } // namespace v8
398 419
399 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ 420 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_
OLDNEW
« no previous file with comments | « src/compiler/instruction.cc ('k') | src/compiler/instruction-selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698