OLD | NEW |
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/instruction.h" | 5 #include "src/compiler/instruction.h" |
6 | 6 |
7 #include "src/compiler/common-operator.h" | 7 #include "src/compiler/common-operator.h" |
8 #include "src/compiler/graph.h" | 8 #include "src/compiler/graph.h" |
9 #include "src/compiler/schedule.h" | 9 #include "src/compiler/schedule.h" |
10 #include "src/compiler/state-values-utils.h" | 10 #include "src/compiler/state-values-utils.h" |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 break; | 202 break; |
203 case MachineRepresentation::kFloat32: | 203 case MachineRepresentation::kFloat32: |
204 os << "|f32"; | 204 os << "|f32"; |
205 break; | 205 break; |
206 case MachineRepresentation::kFloat64: | 206 case MachineRepresentation::kFloat64: |
207 os << "|f64"; | 207 os << "|f64"; |
208 break; | 208 break; |
209 case MachineRepresentation::kSimd128: | 209 case MachineRepresentation::kSimd128: |
210 os << "|s128"; | 210 os << "|s128"; |
211 break; | 211 break; |
212 case MachineRepresentation::kSimd1x4: | |
213 os << "|s1x4"; | |
214 break; | |
215 case MachineRepresentation::kSimd1x8: | |
216 os << "|s1x8"; | |
217 break; | |
218 case MachineRepresentation::kSimd1x16: | |
219 os << "|s1x16"; | |
220 break; | |
221 case MachineRepresentation::kTaggedSigned: | 212 case MachineRepresentation::kTaggedSigned: |
222 os << "|ts"; | 213 os << "|ts"; |
223 break; | 214 break; |
224 case MachineRepresentation::kTaggedPointer: | 215 case MachineRepresentation::kTaggedPointer: |
225 os << "|tp"; | 216 os << "|tp"; |
226 break; | 217 break; |
227 case MachineRepresentation::kTagged: | 218 case MachineRepresentation::kTagged: |
228 os << "|t"; | 219 os << "|t"; |
229 break; | 220 break; |
230 } | 221 } |
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
882 | 873 |
883 | 874 |
884 static MachineRepresentation FilterRepresentation(MachineRepresentation rep) { | 875 static MachineRepresentation FilterRepresentation(MachineRepresentation rep) { |
885 switch (rep) { | 876 switch (rep) { |
886 case MachineRepresentation::kBit: | 877 case MachineRepresentation::kBit: |
887 case MachineRepresentation::kWord8: | 878 case MachineRepresentation::kWord8: |
888 case MachineRepresentation::kWord16: | 879 case MachineRepresentation::kWord16: |
889 return InstructionSequence::DefaultRepresentation(); | 880 return InstructionSequence::DefaultRepresentation(); |
890 case MachineRepresentation::kWord32: | 881 case MachineRepresentation::kWord32: |
891 case MachineRepresentation::kWord64: | 882 case MachineRepresentation::kWord64: |
| 883 case MachineRepresentation::kTaggedSigned: |
| 884 case MachineRepresentation::kTaggedPointer: |
| 885 case MachineRepresentation::kTagged: |
892 case MachineRepresentation::kFloat32: | 886 case MachineRepresentation::kFloat32: |
893 case MachineRepresentation::kFloat64: | 887 case MachineRepresentation::kFloat64: |
894 case MachineRepresentation::kSimd128: | 888 case MachineRepresentation::kSimd128: |
895 case MachineRepresentation::kSimd1x4: | |
896 case MachineRepresentation::kSimd1x8: | |
897 case MachineRepresentation::kSimd1x16: | |
898 case MachineRepresentation::kTaggedSigned: | |
899 case MachineRepresentation::kTaggedPointer: | |
900 case MachineRepresentation::kTagged: | |
901 return rep; | 889 return rep; |
902 case MachineRepresentation::kNone: | 890 case MachineRepresentation::kNone: |
903 break; | 891 break; |
904 } | 892 } |
905 UNREACHABLE(); | 893 UNREACHABLE(); |
906 } | 894 } |
907 | 895 |
908 | 896 |
909 MachineRepresentation InstructionSequence::GetRepresentation( | 897 MachineRepresentation InstructionSequence::GetRepresentation( |
910 int virtual_register) const { | 898 int virtual_register) const { |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1094 for (int i = 0; i < code.InstructionBlockCount(); i++) { | 1082 for (int i = 0; i < code.InstructionBlockCount(); i++) { |
1095 printable_block.block_ = code.InstructionBlockAt(RpoNumber::FromInt(i)); | 1083 printable_block.block_ = code.InstructionBlockAt(RpoNumber::FromInt(i)); |
1096 os << printable_block; | 1084 os << printable_block; |
1097 } | 1085 } |
1098 return os; | 1086 return os; |
1099 } | 1087 } |
1100 | 1088 |
1101 } // namespace compiler | 1089 } // namespace compiler |
1102 } // namespace internal | 1090 } // namespace internal |
1103 } // namespace v8 | 1091 } // namespace v8 |
OLD | NEW |