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

Side by Side Diff: src/compiler/instruction.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/instruction.h ('k') | src/compiler/instruction-selector.h » ('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 #include "src/compiler/common-operator.h" 5 #include "src/compiler/common-operator.h"
6 #include "src/compiler/graph.h" 6 #include "src/compiler/graph.h"
7 #include "src/compiler/instruction.h" 7 #include "src/compiler/instruction.h"
8 #include "src/compiler/schedule.h" 8 #include "src/compiler/schedule.h"
9 #include "src/compiler/state-values-utils.h" 9 #include "src/compiler/state-values-utils.h"
10 10
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 break; 201 break;
202 case MachineRepresentation::kFloat32: 202 case MachineRepresentation::kFloat32:
203 os << "|f32"; 203 os << "|f32";
204 break; 204 break;
205 case MachineRepresentation::kFloat64: 205 case MachineRepresentation::kFloat64:
206 os << "|f64"; 206 os << "|f64";
207 break; 207 break;
208 case MachineRepresentation::kSimd128: 208 case MachineRepresentation::kSimd128:
209 os << "|s128"; 209 os << "|s128";
210 break; 210 break;
211 case MachineRepresentation::kSimd1x4:
212 os << "|s1x4";
213 break;
214 case MachineRepresentation::kSimd1x8:
215 os << "|s1x8";
216 break;
217 case MachineRepresentation::kSimd1x16:
218 os << "|s1x16";
219 break;
211 case MachineRepresentation::kTaggedSigned: 220 case MachineRepresentation::kTaggedSigned:
212 os << "|ts"; 221 os << "|ts";
213 break; 222 break;
214 case MachineRepresentation::kTaggedPointer: 223 case MachineRepresentation::kTaggedPointer:
215 os << "|tp"; 224 os << "|tp";
216 break; 225 break;
217 case MachineRepresentation::kTagged: 226 case MachineRepresentation::kTagged:
218 os << "|t"; 227 os << "|t";
219 break; 228 break;
220 } 229 }
(...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 switch (rep) { 890 switch (rep) {
882 case MachineRepresentation::kBit: 891 case MachineRepresentation::kBit:
883 case MachineRepresentation::kWord8: 892 case MachineRepresentation::kWord8:
884 case MachineRepresentation::kWord16: 893 case MachineRepresentation::kWord16:
885 return InstructionSequence::DefaultRepresentation(); 894 return InstructionSequence::DefaultRepresentation();
886 case MachineRepresentation::kWord32: 895 case MachineRepresentation::kWord32:
887 case MachineRepresentation::kWord64: 896 case MachineRepresentation::kWord64:
888 case MachineRepresentation::kFloat32: 897 case MachineRepresentation::kFloat32:
889 case MachineRepresentation::kFloat64: 898 case MachineRepresentation::kFloat64:
890 case MachineRepresentation::kSimd128: 899 case MachineRepresentation::kSimd128:
900 case MachineRepresentation::kSimd1x4:
901 case MachineRepresentation::kSimd1x8:
902 case MachineRepresentation::kSimd1x16:
891 case MachineRepresentation::kTaggedSigned: 903 case MachineRepresentation::kTaggedSigned:
892 case MachineRepresentation::kTaggedPointer: 904 case MachineRepresentation::kTaggedPointer:
893 case MachineRepresentation::kTagged: 905 case MachineRepresentation::kTagged:
894 return rep; 906 return rep;
895 case MachineRepresentation::kNone: 907 case MachineRepresentation::kNone:
896 break; 908 break;
897 } 909 }
898 UNREACHABLE(); 910 UNREACHABLE();
899 return MachineRepresentation::kNone; 911 return MachineRepresentation::kNone;
900 } 912 }
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 for (int i = 0; i < code.InstructionBlockCount(); i++) { 1100 for (int i = 0; i < code.InstructionBlockCount(); i++) {
1089 printable_block.block_ = code.InstructionBlockAt(RpoNumber::FromInt(i)); 1101 printable_block.block_ = code.InstructionBlockAt(RpoNumber::FromInt(i));
1090 os << printable_block; 1102 os << printable_block;
1091 } 1103 }
1092 return os; 1104 return os;
1093 } 1105 }
1094 1106
1095 } // namespace compiler 1107 } // namespace compiler
1096 } // namespace internal 1108 } // namespace internal
1097 } // namespace v8 1109 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/instruction.h ('k') | src/compiler/instruction-selector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698